Skip to content

transports-uws/polling.js: TypeError: res.onData is not a function #637

@bogdankatishev

Description

@bogdankatishev

Hello,

When testing uws on our socket server, we found a issue. I have configured a socket-io client to only do polling as transport, but when sending the request from socket-io client to the socket-io server, i found this in my socket server console:

node_modules/engine.io/build/transports-uws/polling.js:133
        res.onData((chunk, isLast) => {
            ^
TypeError: res.onData is not a function

And then it crashes the node server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions