class PlaceOS::Edge::Transport
- PlaceOS::Edge::Transport
- Reference
- Object
Overview
WebSocket Transport
Defined in:
placeos-edge/transport.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
- #closed?
- #connect(uri : URI, socket : HTTP::WebSocket | Nil)
- #disconnect
- #listen(socket : HTTP::WebSocket)
-
#ping(interval : Time::Span = 10.seconds)
Periodically send a ping frame
- #sequence_id : UInt64
Constructor Detail
def self.new(sequence_id : UInt64 = 0, on_disconnect : IO::Error | HTTP::WebSocket::CloseCode -> | Nil = nil, on_connect : Proc(Nil) | Nil = nil, &on_request : Tuple(UInt64, PlaceOS::Edge::Protocol::Request) -> )
#