You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling connect after disconnect will not make the socket to connect again.
When disconnectis called, the client is not usable anymore.
// with transport set to Socket.io
var client = new bbt.Stream(opts)
client.on('connected', function() {
console.log('Client connected')
}).on('reconnected', function() {
console.log('Client reconnected')
}).on('disconnected', function() {
console.log('Client disconnected')
}).
//Wait some time
client.disconnect()
//Wait some time
client.connect()
Output:
Client connected
Client disconnected
Client will not emit the reconnected event.
The text was updated successfully, but these errors were encountered:
Calling
connect
afterdisconnect
will not make the socket to connect again.When
disconnect
is called, the client is not usable anymore.Output:
Client will not emit the reconnected event.
The text was updated successfully, but these errors were encountered: