Implement pusher Websocket function to chatrooms

@jsteiner 
how about extracting this to a method?