-
Notifications
You must be signed in to change notification settings - Fork 339
TypeError: socket._receiver.flush is not a function #136
Comments
hm yeah I think that code comes from a pull request that was done before the Andrew updated the ws dependency version. try to get the commit before last and see if that works |
ok but did you try it with e60ac69 with [email protected] ? |
I tried it with every commit. I enter the username and it stays blank and when i send a text message, it says Server Disconnected error with the socket flush error in the terminal. TypeError: socket._receiver.flush is not a function Loaded config 'config.json' /home/prince/hack.chat/server.js:64 TypeError: socket._receiver.flush is not a function I tried every commit, including the latest commit. It doesn't work. What to do? The npm error log file says: 0 info it worked if it ends with ok |
@princenasario Cd into the directory where you have the server software, run the command: npm list ws If the output of npm is different than However, that version of ws is old and slow (not to mention vulnerable to an upgrade header attack). The best recommendation I have is to not use the legacy version and instead use: https://github.com/hack-chat/main This is the current software running on https://hack.chat/, it uses version 5.0.0 of the ws library and has been proven stable with over 400 connections. |
When i set the nickname and press enter, following error occurs.
any idea what went wrong? Or what is missing?
The text was updated successfully, but these errors were encountered: