Recent projects in the use of Nginx Push_stream_module push module to implement server-to-client information push, originally only want to achieve this one-way communication needs, but to the client push the message, if you want to let the client give a feedback, There's no way to listen to the feedback event that gets to the client and respond in a timely manner. Later know that Push_stream_module management long connection is based on Pub/sub mode, and as if the module does not give a similar WebSocket OnMessage API, is not to limit the WebSocket full-duplex communication capabilities, This is like Nodejs socket.io do better, so want to ask everyone based on Push_stream_module can do two-way communication and event monitoring.
Using Nginx push_stream_module push module to manage websocket long connection will not limit the ability of websocket two-way communication