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

Description
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?