class Alfodr::WebSockets::Adapters::RedisAdapter

Overview

Allows websocket connections through redis pub/sub.

Defined in:

alfodr/websockets/adapters/redis.cr

Constructors

Class Method Summary

Instance Method Summary

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]