Closed JieenZhang closed 4 years ago
Describe the bug if call $vueSocketIo.connect must be renew VueSocketIOListener.
connect (connection, options) { if (connection && typeof connection === 'object') { Logger.info(Received socket.io-client instance) return connection } else if (typeof connection === 'string') { const io = SocketIO(connection, options) Logger.info(Received connection string) this.listener = new Listener(io, this.emitter) return (this.io = io) } else { throw new Error('Unsupported connection type') } } Expected behavior call $vueSocketIo.connect
Received socket.io-client instance
Received connection string
Desktop (please complete the following information):
Describe the bug if call $vueSocketIo.connect must be renew VueSocketIOListener.
connect (connection, options) { if (connection && typeof connection === 'object') { Logger.info(
Received socket.io-client instance
) return connection } else if (typeof connection === 'string') { const io = SocketIO(connection, options) Logger.info(Received connection string
) this.listener = new Listener(io, this.emitter) return (this.io = io) } else { throw new Error('Unsupported connection type') } } Expected behavior call $vueSocketIo.connectDesktop (please complete the following information):