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

amber/websockets/subscription_manager.cr

Constant Summary

Log = ::Log.for(self)

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

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

[View source]