예제 #1
0
        static void Main(string[] args)
        {
            WsServer.Start();

            Console.WriteLine("Listening...");
            Console.ReadLine();
        }
예제 #2
0
    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);
    }
예제 #3
0
        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.");
        }
예제 #4
0
 public void Start()
 {
     _wsServer.Start();
     _tcpServer.Start();
 }
예제 #5
0
 public void Start()
 {
     _wsServer.Start();
     Console.WriteLine($"{_transport}Server: {_ip}:{_port} started");
 }
예제 #6
0
 public bool Start()
 {
     return(_server?.Start() ?? false);
 }
예제 #7
0
 public void Start()
 {
     Console.WriteLine($"WebSocketServer: {_ip}:{_port}");
     _wsServer.Start();
 }
예제 #8
0
 public void Start()
 {
     Console.WriteLine($"WebSocketServer: {IPAddress.Any}:{WS_PORT}");
     _wsServer.Start();
 }