class SocketIO::WebSocket

Defined in:

socket_io/websocket.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(socket : HTTP::WebSocket, handler : SocketIO::Base) #

[View source]

Instance Method Detail

def emit(name : String | Symbol, message : NamedTuple) #

[View source]
def on(name : String, &action : JSON::Any -> Void) #

[View source]