Skip to content

Commit 3ea1a54

Browse files
authored
Update README.md
1 parent 684ddfd commit 3ea1a54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ Vue.use(VueNativeSock, 'ws://localhost:9090', {
6767
connectManually: true,
6868
})
6969
const vm = new Vue()
70+
// Connect to the websocket target specified in the configuration
7071
vm.$connect()
72+
// Connect to an alternative websocket URI
73+
vm.$connect('ws://localhost:9090/alternative/connection/')
7174
// do stuff with WebSockets
7275
vm.$disconnect()
7376
```

0 commit comments

Comments
 (0)