mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-21 19:30:34 +03:00
Update README.
This commit is contained in:
@@ -19,7 +19,7 @@ Automatic socket connection from an URL string
|
|||||||
import VueNativeSock from 'vue-native-websocket'
|
import VueNativeSock from 'vue-native-websocket'
|
||||||
Vue.use(VueNativeSock, 'ws://localhost:9090')
|
Vue.use(VueNativeSock, 'ws://localhost:9090')
|
||||||
```
|
```
|
||||||
Set sub-protocol, this is optional option and default it's empty string.
|
Set sub-protocol, this is optional option and default is empty string.
|
||||||
``` js
|
``` js
|
||||||
import VueNativeSock from 'vue-native-websocket'
|
import VueNativeSock from 'vue-native-websocket'
|
||||||
Vue.use(VueNativeSock, 'ws://localhost:9090', 'my-protocol')
|
Vue.use(VueNativeSock, 'ws://localhost:9090', 'my-protocol')
|
||||||
|
|||||||
Reference in New Issue
Block a user