コード例 #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);
        }
コード例 #2
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;
		}