class Room::WS

Defined in:

room.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ws : HTTP::WebSocket, is_host : Bool = false) #

[View source]

Instance Method Detail

def authed=(authed : Bool) #

[View source]
def authed? : Bool #

[View source]
def client? #

[View source]
def close(message : String | Nil) #

[View source]
def closed? #

[View source]
def handle_close(code : HTTP::WebSocket::CloseCode, reason : String) #

[View source]
def handle_message(message : String) #

[View source]
def heartbeat #

[View source]
def host? : Bool #

[View source]
def on_message(&on_message : String -> ) #

[View source]
def purge? #

[View source]
def send(cmd, *args) #

[View source]
def spawn_loop #

[View source]
def timeout? #

[View source]