Skip to content

TypeError: echo.attach is not a function #304

Description

@qiulang

I just use the sample code, "A simplified echo SockJS server" on readme, but I got the error message

echo.attach(server);
     ^

TypeError: echo.attach is not a function

But I see attach() does exist at https://github.com/sockjs/sockjs-node/blob/main/lib/server.js#L58 so I can't figure out why.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions