JaraLowell / OgarServ

Jara's version of Agar.io's private server prodject in Javascript modified from OgarProject using JXCore.
http://ogar.mivabe.nl
Other
29 stars 14 forks source link

'headers' of undefined error #184

Open skysea opened 7 years ago

skysea commented 7 years ago

adsiz

Hi I am getting the error in the picture can you help

nitronaj commented 7 years ago

It because latest node ws module removes the upgradeReq property from the WebSocket object https://github.com/websockets/ws/pull/1099

JaraLowell commented 7 years ago

Yah seems new node did an update to upgradeReq, this is used in our client to pinpoint origen etc, down side is, it not revere compatible, so it either go full new node, or stay with an older one till it more ironed out.

skysea commented 7 years ago

Thank you for answer. Nodejs which version I use

JaraLowell commented 7 years ago

i use 7.4.0

skysea commented 7 years ago

Nodejs version 7.4.0 has the same error

JaraLowell commented 7 years ago

Node.js v7.4.0 (linux x64) Chrome's V8 JavaScript engine v5.4.500.45

is what i run

skysea commented 7 years ago

I will also try 7.0.0. :)

skysea commented 7 years ago

adsiz

7.0.0 version The same error again

JaraLowell commented 7 years ago

you forgetting to remove and re get the ws modules, meaning only changing the node not downgrades the modules installed. remove the modules folder and re get them once older version of node is installed.

skysea commented 7 years ago

i solved this problem like this, npm remove ws npm install ws@2.x