Skip to content

Nitpick: Cap'n Web HTTP and WebSocket should be same endpoint #104

Description

@kentonv

computerd publishes Cap'n Web HTTP-batch at /api and Cap'n Web WebSocket at /ws.

Idiomatic Cap'n Web endpoints should place both of these at the same path, preferably /api. There's no need for WebSockets to be served from a different path. The request content (GET with Upgrade vs. POST) unambiguously specifies which the client wants.

(This is a relatively minor thing I noticed while reading the docs. Feel free to ignore me if you prefer.)

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