mirror of
https://github.com/tenrok/vue-native-websocket.git
synced 2026-06-23 18:20:35 +03:00
Added Missing Events
Added Missing Events
This commit is contained in:
+2
-2
@@ -22,7 +22,7 @@ export default class{
|
|||||||
|
|
||||||
let _this = this;
|
let _this = this;
|
||||||
|
|
||||||
["connect", "error", "disconnect", "reconnect", "reconnect_attempt", "reconnecting", "reconnect_error", "reconnect_failed"]
|
["connect", "error", "disconnect", "reconnect", "reconnect_attempt", "reconnecting", "reconnect_error", "reconnect_failed", "connect_error", "connect_timeout", "connecting", "reconnect_attempt", "ping", "pong"]
|
||||||
.forEach((value) => {
|
.forEach((value) => {
|
||||||
_this.Socket.on(value, (data) => {
|
_this.Socket.on(value, (data) => {
|
||||||
Emitter.emit(value, data)
|
Emitter.emit(value, data)
|
||||||
@@ -30,4 +30,4 @@ export default class{
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user