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

'connection' or 'disconnect' events #16

Open
rorydonohue opened this issue Jun 3, 2015 · 2 comments
Open

'connection' or 'disconnect' events #16

rorydonohue opened this issue Jun 3, 2015 · 2 comments

Comments

@rorydonohue
Copy link

Thanks for the great module!

It doesn't appear binding to 'connection' or 'disconnect' works unfortunately.

What would be needed to add this feature ?

@NathanGRomano
Copy link
Member

I have a few days next week to make improvements to the library, it will be
a a major version bump. No more will you have to do sock.sock and things
like that. I will also add support for acknowledgements.

On Thu, Aug 13, 2015 at 2:58 PM, Marián Hello [email protected]
wrote:

I thing it's because 'connection' event is not actual socket event but
ajax.
You can use standart io middleware, which has basically same syntax as
socket.io-events.

io.use(function (socket, next) {
next();
});

or when using namespaces

io.of('/somenamespace')
.use(function (socket, next) {
next();
});


Reply to this email directly or view it on GitHub
#16 (comment)
.

@Natashkinsasha
Copy link

Natashkinsasha commented Jul 26, 2018

Hi. I also like your module. The features described above are not enough. Will you continue to improve your module?

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

3 participants