public static void Start(int port) { var server = new FlowServer(options) .UsingModule(new TcpModule(IPAddress.Any, port)) .UsingModule(new WebSocketModule("127.0.0.1:3333")); server.ClientConnected += Server_ClientConnected; server.ClientDisconnected += Server_ClientDisconnected; server.Bind <UserInput>((int)CsEventId.SendName, NameReceive); server.Bind <UserInput>((int)CsEventId.SendMessage, MessageReceive); server.Start(); Console.WriteLine("The server is started"); }