class Launch::WebSockets::Adapters::RedisAdapter

Overview

Allows websocket connections through redis pub/sub.

Defined in:

launch/websockets/adapters/redis.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Object

blank? blank?, present? present?

Constructor Detail

def self.new #

Establish subscribe and publish connections to Redis


[View source]

Class Method Detail

def self.instance #

[View source]

Instance Method Detail

def on_message(topic_path, listener) #

Add a redis subscriber with topic topic_path


[View source]
def publish(topic_path, client_socket, message) #

Publish the message to the redis publisher with topic topic_path


[View source]