Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

[2.x] Add Custom API Route Handlers  #660

@simonbuehler

Description

@simonbuehler

Hi,

there already do exist API handlers in websockets.php ('/fetch_channels, fetchusers, health ...) which can be extended but there is no way to add a new route like /updateGameStats and link a handler class to it.

The reason behind this is that this would allow to have a backend triggered Action by calling a custom API endpoint.

Up to now its only possible to react to specific connection / subscription events or incoming messages. There is no way of having a laravel app trigger a backend event and handle it in the websocket context with access to Channelmanager etc; calling a custom api route would allow to implement needed logic in the handler class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions