Channel
abstract class Azu::Channel
inherits Reference
A channel encapsulates a logical unit of work similar to an Endpoint.
Channels are used for websocket connections that can handle multiple connections instances. A single client may have multiple WebSockets connections open to the application.
Each channel can in turn broadcast to multiple connected clients
You must setup a websocket route in your routing service
ExampleApp.router do
ws "/hi", ExampleApp::ExampleChannel
end