class Azu::Spark
- Azu::Spark
- Azu::Channel
- Reference
- Object
Defined in:
azu/spark.crConstant Summary
-
COMPONENTS =
{} of String => Component
-
GC_INTERVAL =
10.seconds
Class Method Summary
Instance Method Summary
- #on_binary(binary)
- #on_close(code : HTTP::WebSocket::CloseCode | Int | Nil = nil, message = nil)
-
#on_connect
Invoked when a connection is established
- #on_message(message)
- #on_ping(message)
- #on_pong(message)
Instance methods inherited from class Azu::Channel
call(context : HTTP::Server::Context)
call,
on_binary(binary : Bytes)
on_binary,
on_close(code : HTTP::WebSocket::CloseCode | Nil, message : String | Nil)
on_close,
on_connect
on_connect,
on_message(message : String)
on_message,
on_ping(message : String)
on_ping,
on_pong(message : String)
on_pong,
socket : HTTP::WebSocket
socket,
socket? : HTTP::WebSocket | Nil
socket?
Constructor methods inherited from class Azu::Channel
new(socket : HTTP::WebSocket)
new
Class methods inherited from class Azu::Channel
ws(path : Router::Path)
ws
Class Method Detail
Instance Method Detail
def on_connect
#
Description copied from class Azu::Channel
Invoked when a connection is established