3

How to set NoDelay socket option (or socket options in general) with supersocket?

Anri
  • 6,175
  • 3
  • 37
  • 61

1 Answers1

2

Ok that was easy, don't know why I didn't see it before. Underlying Socket object is accessible through session.

WebSocketServer appServer;
appServer.NewSessionConnected += session => 
                                 session.SocketSession.Client
                                 .SetSocketOption(SocketOptionLevel.Socket, 
                                                 SocketOptionName.NoDelay, true);
Anri
  • 6,175
  • 3
  • 37
  • 61