You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingSystem;usingWebSocketSharp;usingWebSocketSharp.Server;namespaceExample{publicclassLaputa:WebSocketBehavior{protectedoverridevoidOnMessage(MessageEventArgse){varmsg=e.Data=="BALUS"?"Are you kidding?":"I'm not available now.";Send(msg);}}publicclassProgram{publicstaticvoidMain(string[]args){varwssv=newWebSocketServer("ws://dragonsnest.far");wssv.AddWebSocketService<Laputa>("/Laputa");wssv.Start();Console.ReadKey(true);wssv.Stop();}}}
If you actually run it, the server never stops after the last call.
The text was updated successfully, but these errors were encountered:
Per README for server code:
If you actually run it, the server never stops after the last call.
The text was updated successfully, but these errors were encountered: