mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-23 21:00:35 +03:00
Update README.md
Message from socket now will be saved in proper object field.
This commit is contained in:
@@ -152,7 +152,7 @@ export default new Vuex.Store({
|
|||||||
},
|
},
|
||||||
// default handler called for all methods
|
// default handler called for all methods
|
||||||
SOCKET_ONMESSAGE (state, message) {
|
SOCKET_ONMESSAGE (state, message) {
|
||||||
state.message = message
|
state.socket.message = message
|
||||||
},
|
},
|
||||||
// mutations for reconnect methods
|
// mutations for reconnect methods
|
||||||
SOCKET_RECONNECT(state, count) {
|
SOCKET_RECONNECT(state, count) {
|
||||||
|
|||||||
Reference in New Issue
Block a user