static void Main(string[] args) { WsServer.Start(); Console.WriteLine("Listening..."); Console.ReadLine(); }
System.Collections.IEnumerator Start() { Debug.Log("Server Start"); m_Server = new WsServer(WsServerOption.Default, this); m_Server.Start(); yield return(new WaitForSeconds(10f)); Destroy(this); }
public void Start() { if (!TryStartListener()) { if (!TryAddUrlReservations()) { Log.ErrorFormat("Unable to add url reservations for web server."); return; } if (!TryStartListener()) { Log.ErrorFormat("Unable to start listener"); return; } } WsServer.Start(); _proxy.Start(); Log.InfoFormat("Web server started."); }
public void Start() { _wsServer.Start(); _tcpServer.Start(); }
public void Start() { _wsServer.Start(); Console.WriteLine($"{_transport}Server: {_ip}:{_port} started"); }
public bool Start() { return(_server?.Start() ?? false); }
public void Start() { Console.WriteLine($"WebSocketServer: {_ip}:{_port}"); _wsServer.Start(); }
public void Start() { Console.WriteLine($"WebSocketServer: {IPAddress.Any}:{WS_PORT}"); _wsServer.Start(); }