struct
Amber::WebSockets::DisconnectedConnection
- Amber::WebSockets::DisconnectedConnection
- Struct
- Value
- Object
Overview
Holds the state of a disconnected connection for recovery.
Defined in:
amber/websockets/client_sockets.crConstructors
Instance Method Summary
- #clone
- #connection_id : String
- #copy_with(connection_id _connection_id = @connection_id, disconnected_at _disconnected_at = @disconnected_at, list_of_subscribed_topics _list_of_subscribed_topics = @list_of_subscribed_topics, list_of_buffered_messages _list_of_buffered_messages = @list_of_buffered_messages)
- #disconnected_at : Time
- #list_of_buffered_messages : Array(String)
- #list_of_subscribed_topics : Array(String)
Constructor Detail
def self.new(connection_id : String, disconnected_at : Time, list_of_subscribed_topics : Array(String), list_of_buffered_messages : Array(String))
#
Instance Method Detail
def copy_with(connection_id _connection_id = @connection_id, disconnected_at _disconnected_at = @disconnected_at, list_of_subscribed_topics _list_of_subscribed_topics = @list_of_subscribed_topics, list_of_buffered_messages _list_of_buffered_messages = @list_of_buffered_messages)
#