Skip to content
This repository was archived by the owner on Apr 1, 2018. It is now read-only.
This repository was archived by the owner on Apr 1, 2018. It is now read-only.

TypeError: socket._receiver.flush is not a function #136

@cavebeat

Description

@cavebeat

When i set the nickname and press enter, following error occurs.

chat@chat:~$ cd hack.chat/
chat@chat:/home/chat/hack.chat$ node server.js
Loaded config 'config.json'
Started server on 0.0.0.0:6060
/home/chat/hack.chat/server.js:64
socket._receiver.flush();
^

TypeError: socket._receiver.flush is not a function
at WebSocket. (/home/chat/hack.chat/server.js:64:21)
at emitOne (events.js:115:13)
at WebSocket.emit (events.js:210:7)
at Receiver._receiver.onmessage (/home/chat/hack.chat/node_modules/ws/lib/WebSocket.js:146:47)
at Receiver.dataMessage (/home/chat/hack.chat/node_modules/ws/lib/Receiver.js:389:14)
at Receiver.getData (/home/chat/hack.chat/node_modules/ws/lib/Receiver.js:330:12)
at Receiver.startLoop (/home/chat/hack.chat/node_modules/ws/lib/Receiver.js:165:16)
at Receiver.add (/home/chat/hack.chat/node_modules/ws/lib/Receiver.js:139:10)
at Socket._ultron.on (/home/chat/hack.chat/node_modules/ws/lib/WebSocket.js:142:22)
at emitOne (events.js:115:13)
chat@chat:/home/chat/hack.chat$

root@chat:~# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.1 (stretch)
Release: 9.1
Codename: stretch

chat@chat:/home/chat/hack.chat$ node -v
v8.4.0

any idea what went wrong? Or what is missing?

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