Broadcasting message length issue.

46 views
Skip to first unread message

NAGARAJ joshi

unread,
May 13, 2016, 2:50:17 AM5/13/16
to pomelo's forum
Hello,

We have decided to use pomelo for our Multiplayer game as it is robust and salable. But when ever the message to  broadcast gets longer :
[{"multiPos":"[{\"player*1\":{\"x\":\"3.333\",\"y\":\"1.857\"},\"player*2\":{\"x\":\"5.000\",\"y\":\"1.971\"}}]","sid":0,"direction":"[{\"player*1\":\"-\",\"player*2\":\"-\"}]"}]

Then the client(Uses corona) troughs this error:

dmc_websockets :: Unknown Error E:\Work\REPO\client\libs\pomelo\Protocol.lua:109: attempt to index field '?' (a nil value)
12:04:33.678  stack traceback:
12:04:33.678   E:\Work\REPO\client\libs\dmc_websockets.lua:640: in function '_receiveFrame'
12:04:33.678   E:\Work\REPO\client\libs\dmc_websockets.lua:1170: in function 'callback'
12:04:33.678   E:\Work\REPO\client\libs\dmc_sockets\async_tcp.lua:305: in function 'receive'
12:04:33.678   E:\Work\REPO\client\libs\dmc_websockets.lua:1175: in function <E:\Work\REPO\client\libs\dmc_websockets.lua:1143>
12:04:33.678   (tail call): ?
12:04:33.678   E:\Work\REPO\client\libs\dmc_sockets\async_tcp.lua:472: in function '_doAfterReadAction'
12:04:33.678   E:\Work\REPO\client\libs\dmc_sockets\tcp.lua:401: in function '_readStatus'
12:04:33.678   E:\Work\REPO\client\libs\dmc_sockets.lua:453: in function '_checkConnections'
12:04:33.678   E:\Work\REPO\client\libs\dmc_sockets.lua:481: in function <E:\Work\REPO\client\libs\dmc_sockets.lua:478>
12:04:33.678   ?: in function <?:205>


please help me out with this.
Reply all
Reply to author
Forward
0 new messages