class
Azu::Spark
- Azu::Spark
- Azu::Channel
- Reference
- Object
Defined in:
azu/spark.crConstant Summary
-
GC_INTERVAL =
10.seconds
Constructors
Class Method Summary
-
.components
Get the default class-level registry (backward compatibility)
- .javascript_tag
-
.reset_registry!
Reset the default registry (useful for testing)
Instance Method Summary
- #on_binary(binary)
-
#on_close(code : HTTP::WebSocket::CloseCode | Nil = nil, message : String | Nil = nil)
Invoked when the connection is closed
-
#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
Constructor Detail
Class Method Detail
Instance Method Detail
Description copied from class Azu::Channel
Invoked when the connection is closed
def on_connect
#
Description copied from class Azu::Channel
Invoked when a connection is established