void onOpen(object sender, XSockets.Core.Common.Socket.Event.Arguments.OnClientConnectArgs e) { this.send("connected"); }
void StockController_OnOpen(object sender, XSockets.Core.Common.Socket.Event.Arguments.OnClientConnectArgs e) { //Send to available stocks to the client when he/she´s connected. No need to ask for them. this.Send(StockTicker.Stocks.Values, "allStocks"); }