mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-23 08:30:35 +03:00
+1
-1
@@ -21,7 +21,7 @@ export default class{
|
|||||||
this.Socket.onevent = (packet) => {
|
this.Socket.onevent = (packet) => {
|
||||||
Emitter.emit(packet.data[0], packet.data[1]);
|
Emitter.emit(packet.data[0], packet.data[1]);
|
||||||
|
|
||||||
if(this.store) this.passToStore('SOCKET_'+packet.data[0], packet.data[1])
|
if(this.store) this.passToStore('SOCKET_'+packet.data[0], [ ...packet.data.slice(1)])
|
||||||
};
|
};
|
||||||
|
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user