struct Lattice::SubscriptionManager

Overview

SubscriptionManager manages the list of channel subscriptions for the socket connection. Also handles dispatching actions (messages) to the appropriate channel.

Defined in:

lattice/subscription_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def dispatch(client_socket, message) #

[View source]
def initialize #

[View source]
def on_uncaptured_event : Proc(JSON::Any, Nil) | Nil #

[View source]
def on_uncaptured_event=(on_uncaptured_event : Proc(JSON::Any, Nil) | Nil) #

[View source]
def subscriptions : Hash(String, Lattice::Channel) #

[View source]
def subscriptions=(subscriptions : Hash(String, Lattice::Channel)) #

[View source]