-
Notifications
You must be signed in to change notification settings - Fork 27
Description
D:\Plither-master\src\server\index.js:81
if (value === conn.snake.direction.angle) {
^
TypeError: Cannot read property 'direction' of undefined
at WebSocketServer.handleMessage (D:\Plither-master\src\server
index.js:81:37)
at emitTwo (events.js:87:13)
at WebSocket.emit (events.js:172:7)
at Receiver.onbinary (D:\Plither-master\node_modules\ws\lib\Web
Socket.js:848:10)
at D:\Plither-master\node_modules\ws\lib\Receiver.js:628:18
at D:\Plither-master\node_modules\ws\lib\Receiver.js:368:7
at D:\Plither-master\node_modules\ws\lib\PerMessageDeflate.js:2
49:5
at afterWrite (_stream_writable.js:354:3)
at onwrite (_stream_writable.js:345:7)
at WritableState.onwrite (_stream_writable.js:89:5)
here is the crash log.
seems like a issue with code?
please help !