Skip to content

The problem happend when I connect the server. #28

@a632283395

Description

@a632283395

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions