Skip to content

how to upgrade an http server to websockets? #308

Description

@dckc

The websocket server seems to always create its own listener socket. I'm trying to support an application (Agoric ag-solo, web.js) that initially uses its socket for ordinary GET requests for index.html and such before UPGRADEing to websockets. The popular ws package supports a noServer mode where an http handler can pass its socket when an UPGRDADE request comes in.

Any suggestions on how to do this?

My guess is I should make a revised websockets.js module.

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