struct Alfodr::WebSockets::SubscriptionManager

Overview

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

Defined in:

alfodr/websockets/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 subscriptions : Hash(String, Alfodr::WebSockets::Channel) #

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

[View source]