cocos / engine-native

Native engine for Cocos Creator v2.x

Home Page:http://www.cocos.com/en/products

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[CC 3.1.1] message truncate when send string

dev-keishen opened this issue · comments

Dear team

I face an random issue when i send string message by websocket

I try to send message to server by string using this code:

let pid = pingID; let mes = [MessageRequest.Ping_Type, "Simms", pid,0]; GameNetworkHandler.ws.send(JSON.stringify(mes));

And this is result which got on server : [7,"Simms",264,0

It seem that : message was truncated the character ']' at the end

NOTE : This is random issues,sometime websocket send correct,but sometimes it was wrong

Did you guys have an PR or an hotfix which i can apply?
Thanks you