franciscop / server

:desktop_computer: Simple and powerful server for Node.js
https://serverjs.io/
MIT License
3.56k stars 173 forks source link

parser.parsingHeadersStart = nowDate(); #117

Closed elieobeid7 closed 5 years ago

elieobeid7 commented 5 years ago

Trying to run websockets example here, just copying and pasting

https://github.com/franciscop/server/tree/master/examples/websocket

I get

_http_server.js:744
    parser.parsingHeadersStart = nowDate();
                               ^

TypeError: Cannot set property 'parsingHeadersStart' of undefined
    at IncomingMessage.resetHeadersTimeoutOnReqEnd (_http_server.js:744:32)
    at IncomingMessage.emit (events.js:189:13)
    at endReadableNT (_stream_readable.js:1125:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)