class

Phoenix::Socket

Inherits Reference < Object

Constants

Log = ::Log.for("phoenix")

Constructors

new(endpoint : String, params : Hash(String, String) | Proc(Hash(String, String)) = {} of String => String, heartbeat_interval : Time::Span = 30.seconds, reconnect_after : Proc(Int32, Time::Span) = Timer::DEFAULT_BACKOFF, timeout : Time::Span = 10.seconds, serializer : Serializer = Serializer::JSON.new, logger : ::Log | Nil = nil)
Source

Instance methods

channel(topic : String, params : JSON::Any = JSON::Any.new({} of String => JSON::Any)) : Channel
Source
channel(topic : String, params : Hash) : Channel

Overload for hash convenience

Source
connect
Source
connected?
Source
disconnect(code : UInt16 | Nil = nil, reason : String | Nil = nil) : Nil
Source
endpoint
Source
make_ref
Source
off(ref : Int32) : Nil
Source
on_close
Source
on_error
Source
on_open
Source
push(msg : Message) : Nil
Source
remove_channel(channel : Channel) : Nil

Called by Channel to remove itself

Source