Implement basic support for connecting to wings console via websocket rather than socketio
This commit is contained in:
parent
0757d8856b
commit
e87c5f6657
12 changed files with 122 additions and 117 deletions
|
@ -34,10 +34,7 @@ export const Socketio: ComponentOptions<Vue> = {
|
|||
},
|
||||
|
||||
methods: {
|
||||
/**
|
||||
* @return {SocketioConnector}
|
||||
*/
|
||||
'$socket': function () {
|
||||
'$socket': function (): SocketioConnector | null {
|
||||
return connector;
|
||||
},
|
||||
|
||||
|
@ -49,7 +46,7 @@ export const Socketio: ComponentOptions<Vue> = {
|
|||
return;
|
||||
}
|
||||
|
||||
const instance: SocketIOClient.Socket | null = connector.instance();
|
||||
const instance = connector.instance();
|
||||
if (instance) {
|
||||
instance.close();
|
||||
}
|
||||
|
|
Reference in a new issue