express.io icon indicating copy to clipboard operation
express.io copied to clipboard

support for volatile?

Open bpytlik opened this issue 11 years ago • 1 comments

Maybe I'm just missing it, but I'm not seeing a way to use express.io to do a volatile emit or broadcast. Ideally, I'd like to be able to do a volatile broadcast within a room. I think (from reading documentation + code) that this is something that socket.io supports. Is this something you've thought about working on? Is it something you'd consider accepting a pull request to add?

Thanks.

bpytlik avatar Mar 07 '13 03:03 bpytlik

Yes I would definitely accept a pull request for it.

You can still use the socket.io socket like this:

req.io.socket.volatile.emit(event, data)

But I think it would be cleaner if it were referenced like this:

req.io.volatile(event, data)

techpines avatar Mar 07 '13 14:03 techpines