class Azu::Spark

Defined in:

azu/spark.cr

Constant Summary

COMPONENTS = {} of String => Component
GC_INTERVAL = 10.seconds

Class Method Summary

Instance Method Summary

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

def self.javascript_tag #

[View source]

Instance Method Detail

def on_binary(binary) #

[View source]
def on_close(code : HTTP::WebSocket::CloseCode | Int | Nil = nil, message = nil) #

[View source]
def on_connect #
Description copied from class Azu::Channel

Invoked when a connection is established


[View source]
def on_message(message) #

[View source]
def on_ping(message) #

[View source]
def on_pong(message) #

[View source]