internal void OnMessageSent(Client client) { MessageSent(this, ServerEventArgs.NewEvent(client)); }
private void server_OnConnectionClosed(Server sender, ServerEventArgs eventArgs) { HandleNewMsg(Environment.NewLine + eventArgs.Client.Id.ToString() + ": Disconnected!"); }
internal void OnDisconnected(Client client) { Disconnected(this, ServerEventArgs.NewEvent(client)); }
void server_OnConnected(Server sender, ServerEventArgs eventArgs) { HandleNewMsg(Environment.NewLine + eventArgs.Client.Id.ToString() + ": Connected!"); server.Send(eventArgs.Client.Id, "Hello ClientId " + eventArgs.Client.Id.ToString()); }