Communicating with a socket.io server via c#

前端 未结 6 1218
刺人心
刺人心 2020-12-01 01:19

Is there a c# client that follows the socket.io protocol? I have a socket.io server that is communicating with a socket.io javascript client via a website, but i also need t

6条回答
  •  不思量自难忘°
    2020-12-01 01:47

    This depends on how your webserver looks. In some cases it might be applicable to make a listener for regular sockets too.
    Otherwise, you will probably have to make your own client. However, you will probably only need to implement the WebSocket transport so it should be fairly straightforward anyway.

    For what it's worth I'd suggest looking at the question "Is there a WebSocket client implemented for .NET?" and my (fairly simple) WebSocket Socket.IO transport client implementation for Java.

提交回复
热议问题