2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-05-17 05:39:39 +03:00

Update README.

This commit is contained in:
Aaron Chen
2017-06-29 16:09:36 +08:00
parent b9b1bee5c0
commit 49d7229ee3
+1 -1
View File
@@ -19,7 +19,7 @@ Automatic socket connection from an URL string
import VueNativeSock from 'vue-native-websocket'
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
import VueNativeSock from 'vue-native-websocket'
Vue.use(VueNativeSock, 'ws://localhost:9090', 'my-protocol')