- Home /
BestHTTP - While using socket connection most of time I'm getting error and also after socket IO3 joining the room unable to receive a event from server to unity.
I have using Best http 2.4.0 Latest plugin for Socket IO3 code
While using socket connection most of time I'm getting this error and also after socket IO3 joining the room unable to receive a event from server to unity.
{"tid":1,"div":"WebSocketTransport","msg":"OnBinary Packet parsing","ex": [{"msg": "Unexpected token readed 'BeginArray' while 'BeginObject' is expected.", "stack": " at GameDevWare.Serialization.Serializers.ObjectSerializer.Deserialize (GameDevWare.Serialization.IJsonReader reader) [0x00026] in D:\\Pictures\\mopub testing\\Assets\\Plugins\\GameDevWare.Serialization\\Serializers\\ObjectSerializer.cs:69 \r\n at GameDevWare.Serialization.JsonReaderExtentions.ReadValue (GameDevWare.Serialization.IJsonReader reader, System.Type valueType, System.Boolean nextToken) [0x00096] in D:\\Pictures\\mopub testing\\Assets\\Plugins\\GameDevWare.Serialization\\JsonReaderExtentions.cs:727 \r\n at BestHTTP.SocketIO3.Parsers.MsgPackParser.ReadParameters (BestHTTP.SocketIO3.Socket socket, BestHTTP.SocketIO3.Events.Subscription subscription, GameDevWare.Serialization.IJsonReader reader) [0x00098] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Examples\\SocketIO3\\Parsers\\MsgPackParser.cs:240 \r\n at BestHTTP.SocketIO3.Parsers.MsgPackParser.ReadData (BestHTTP.SocketIO3.SocketManager manager, BestHTTP.SocketIO3.IncomingPacket packet, GameDevWare.Serialization.IJsonReader reader) [0x000ee] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Examples\\SocketIO3\\Parsers\\MsgPackParser.cs:304 \r\n at BestHTTP.SocketIO3.Parsers.MsgPackParser.Parse (BestHTTP.SocketIO3.SocketManager manager, BestHTTP.PlatformSupport.Memory.BufferSegment data, BestHTTP.SocketIO3.TransportEventTypes transportEvent) [0x0010e] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Examples\\SocketIO3\\Parsers\\MsgPackParser.cs:146 \r\n at BestHTTP.SocketIO3.Transports.WebSocketTransport.OnBinary (BestHTTP.WebSocket.WebSocket ws, System.Byte[] data) [0x00053] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Source\\SocketIO.3\\Transports\\WebSocketTransport.cs:172 "}],"stack":" at SocketIO3.Transports.WebSocketTransport.OnBinary (WebSocket.WebSocket ws, System.Byte[] data) [0x0007a] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Source\\SocketIO.3\\Transports\\WebSocketTransport.cs:176 \r at WebSocket.WebSocket.b_47_1 (WebSocket.WebSocketResponse ws, System.Byte[] bin) [0x0000e] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Source\\WebSocket\\WebSocket.cs:439 \r at WebSocket.WebSocketResponse.Core.IProtocol.HandleEvents () [0x000f7] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Source\\WebSocket\\WebSocketResponse.cs:540 \r at Core.ProtocolEventHelper.ProcessQueue () [0x00087] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Source\\Core\\ProtocolEvents.cs:69 \r at HTTPManager.OnUpdate () [0x0000d] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Source\\HTTPManager.cs:416 \r at HTTPUpdateDelegator.Update () [0x00020] in D:\\Pictures\\mopub testing\\Assets\\Best HTTP\\Source\\HTTPUpdateDelegator.cs:171 ","ctxs":[{"TypeName": "SocketManager", "Hash": -392288000}],"t":637568698150178555,"ll":"Exception","bh":1} UnityEngine.Debug:LogError(Object) BestHTTP.Logger.UnityOutput:Write(Loglevels, String) (at Assets/Best HTTP/Source/Logger/UnityOutput.cs:22) BestHTTP.Logger.ThreadedLogger:ThreadFunc() (at Assets/Best HTTP/Source/Logger/ThreadedLogger.cs:130) BestHTTP.PlatformSupport.Threading.<>cDisplayClass5_0:b_0() (at Assets/Best HTTP/Source/PlatformSupport/Threading/ThreadedRunner.cs:94) System.Threading.ThreadHelper:ThreadStart(Object)
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Client-Server 1 Answer
TCP responses are not receiving properly on client side. 1 Answer
Multiplayer game using Sockets or Socket.IO? (without UNET or Photon) 6 Answers
Unity 3 socket secure policy 0 Answers