struct Amber::WebSockets::DisconnectedConnection

Overview

Holds the state of a disconnected connection for recovery.

Defined in:

amber/websockets/client_sockets.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(connection_id : String, disconnected_at : Time, list_of_subscribed_topics : Array(String), list_of_buffered_messages : Array(String)) #

[View source]

Instance Method Detail

def clone #

[View source]
def connection_id : String #

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) #

[View source]
def disconnected_at : Time #

def list_of_buffered_messages : Array(String) #

def list_of_subscribed_topics : Array(String) #