XSockets.Net Server onOpen event implementation
问题 I tweak XSockets.Net Server now. I read http://xsockets.net/docs/c-server-api#using_events Using events The server side API offer a few events to help you out. OnOpen Invoked when the client is connected and the handshake is completed. //Hook up the event in the constructor. public MyController() { this.OnOpen += MyController_OnOpen; } void MyController_OnOpen(object sender, OnClientConnectArgs e) { //The connection is open... } so, if I do the below in VisualStduio.net class MyController :