class

Wsc::App

Inherits Reference < Object

Constants

DEFAULT_HOST = "127.0.0.1"
DEFAULT_PATH = "/"
DEFAULT_PORT = 80
DEFAULT_TLS_PORT = 443

Constructors

new(uri : String, headers : HTTP::Headers, insecure : Bool)
Source

Class methods

run(uri : String, headers : HTTP::Headers, insecure : Bool)
Source
run(uri : String, headers : HTTP::Headers)
Source
run(uri : String)
Source

Instance methods

close
Source
on_binary(proc : Proc)
Source
on_binary
Source
on_binary
Source
on_close
Source
on_close
Source
on_message(proc : Proc)
Source
on_message
Source
on_message
Source
on_ping
Source
on_pong
Source
ping(message : String | Nil = nil)
Source
pong(message : String | Nil = nil)
Source