express.io
express.io copied to clipboard
support for volatile?
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.
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)