I am supporting both REST & socket endpoints and would like to broadcast messages created via rest endpoint (just like those created through sockets). Is it possible? How can I access socket object from REST handlers?
I could quickly establish a socket, connect, broadcast but I think this is not optimal.