Skip to content

connected event not emitted on multiplexed connection #12

@bachwehbi

Description

@bachwehbi

Can be reproduced with the following example

// with transport set to Socket.io
var client1 = new bbt.Stream(opts)
client1.on('connected', function() {
    console.log('Client 1 connected')
})

//Wait some time

var client2 = new bbt.Stream(opts)
client2.on('connected', function() {
    console.log('Client 2 connected')
})

Output:

Client 1 connected

Client 2 will not emit the connected event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions