abstract class WebChannels::WebChannel
- WebChannels::WebChannel
- Reference
- Object
Defined in:
webchannels.crConstructors
Class Method Summary
-
.authenticate(socket, data, ctx)
Override me
- .broadcast(topic, data)
- .chan_by_socket(socket : HTTP::WebSocket)
- .chan_by_socket!(socket)
- .fanout(data : String | Bytes)
- .join(socket, data, ctx) : Bool
- .leave(socket : HTTP::WebSocket)
- .pass_data(socket, data)
Instance Method Summary
-
#authorize(data : String)
Override me
- #broadcast(topic, data)
-
#on_join(data : String)
Override me
-
#on_leave
Override me
-
#on_message(data : String)
Override me
- #send(data : String | Bytes)
- #socket : HTTP::WebSocket
- #socket=(socket : HTTP::WebSocket)
- #subscribe(topic : String)
- #topics : Array(String)
- #topics=(topics : Array(String))
- #unsubscribe(topic : String)