Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'join' of undefined #20

Open
smasinde opened this issue May 20, 2020 · 1 comment
Open

Cannot read property 'join' of undefined #20

smasinde opened this issue May 20, 2020 · 1 comment

Comments

@smasinde
Copy link

io.on('connection', async (ctx: any, data: any) => {

    console.log(`client has connected...`);
    ctx.socket.join('some_room');
    console.log('ROOMS:::' + ctx.socket.rooms);
})

why? Everything else working...

@bamtheboozle
Copy link

having the same issue, any idea what could cause it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants