Esempio n. 1
0
        public override IGameSparksWebSocket GetSocket(string url, Action <string> messageReceived, Action closed, Action opened, Action <string> error)
        {
            var socket = new WebGLWebSocket();

            socket.Initialize(url, messageReceived, closed, opened, error);
            socket.SetController(webSocketController);
            socket.Open();
            return(socket);
        }
		public override IGameSparksWebSocket GetSocket (string url, Action<string> messageReceived, Action closed, Action opened, Action<string> error)
		{
			var socket = new WebGLWebSocket();

			socket.Initialize(url, messageReceived, closed, opened, error);
			socket.SetController(webSocketController);
			socket.Open();
			return socket;
		}