2
0
mirror of https://github.com/tenrok/vue-native-websocket.git synced 2026-06-12 04:02:26 +03:00

Update README.md

Message from socket now will be saved in proper object field.
This commit is contained in:
Ruslan Tursunov
2018-05-30 18:19:57 +03:00
committed by GitHub
parent 649485e28b
commit 4f9acd05f9
+1 -1
View File
@@ -152,7 +152,7 @@ export default new Vuex.Store({
},
// default handler called for all methods
SOCKET_ONMESSAGE (state, message) {
state.message = message
state.socket.message = message
},
// mutations for reconnect methods
SOCKET_RECONNECT(state, count) {