Skip to content

Allow access to server from WebSocket event handlers #25

@joshkel

Description

@joshkel

I'm looking for a way to access shared server state from hapi-plugin-websocket's lower-level event handlers (connect, disconnect, and error). For a normal request, I could access this via request.server.app, but that's not an option for these event handlers.

Can/should they be extended to, e.g., offer server or app within the PluginState object or as an additional parameter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions