Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Commit 47c7c79

Browse files
authored
Update README.md
1 parent e9e28ff commit 47c7c79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ Register the plugin
77
import VueWebsocket from "vue-websocket";
88
Vue.use(VueWebsocket);
99
```
10+
or connect to other address:
11+
```js
12+
Vue.use(VueWebsocket, "http://otherserver:8080");
13+
```
14+
You can pass options too:
15+
```js
16+
Vue.use(VueWebsocket, "http://otherserver:8080", {
17+
reconnection: false
18+
});
19+
```
20+
1021

1122
Use it in your components:
1223
```html

0 commit comments

Comments
 (0)