How to do RPC over socket.io?

前端 未结 2 504
悲&欢浪女
悲&欢浪女 2021-01-13 04:39

Suppose we have a simple echo server (tuned to be longer on the first request):

var waiting = 8000;
io.on(\'         


        
2条回答
  •  离开以前
    2021-01-13 05:26

    With socket.io you can send and receive acknowledgements via callbacks.

    See this: http://socket.io/docs/#sending-and-getting-data-(acknowledgements)

提交回复
热议问题