WebSocket provides a bi-directional communication like a human being talks. The client can send data to the server and the server can send data to the client anytime. But wh
Take a look at msg-rpc, it provides bidirectional rpc support over simple message interface, include WebSocket.
Not only the simple rpc, which could cover "client request / server response" behavior, it also supports "server request / client response" behavior, which is via the Rpc Service.
To get start with, there're sockjs and socket.io examples .