struct Launch::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:

launch/websockets/subscription_manager.cr

Constant Summary

Log = ::Log.for(self)

Constructors

Instance Method Summary

Instance methods inherited from class Object

blank? blank?, present? present?

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, Launch::WebSockets::Channel) #

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

[View source]