Runs just before the app shuts down. This is useful for things like the cron or websocket service, which creates new work that might rely on other services still being operational.
In most cases you probably want to implement OnAppShutdown. Most relevant things like eg. The data source service are still operational there, as they implement the AfterAppShutdown interface.
Disconnects the given connection.
Finds the websocket connection with the given id.
Finds the websocket connection with the given user id.
Gets all currently active connections.
Adds the given connection to the channel with the given id.
Removes the given connection from the channel with the given id.
Registers a websocket controller that listens to events.
Sends a message to a single connection.
Sends a message to all connections.
Sends a message to a single channel.
Default implementation for handling websockets. Uses socket.io under the hood.