class

Azu::Spark

Inherits Azu::Channel < HTTP::Handler < Reference < Object

Constants

GC_INTERVAL = 10.seconds

Constructors

new(socket : HTTP::WebSocket, components : ComponentRegistry = Spark.components)
Source

Class methods

components

Get the default class-level registry (backward compatibility)

Source
javascript_tag
Source
reset_registry!

Reset the default registry (useful for testing)

Source

Instance methods

on_binary(binary)
Source
on_close(code : HTTP::WebSocket::CloseCode | Nil = nil, message : String | Nil = nil)

Invoked when the connection is closed

Source
on_connect

Invoked when a connection is established

Source
on_message(message)
Source
on_ping(message)
Source
on_pong(message)
Source