class WebsocketManager

Overview

TODO for production move to redis or something like that to manage distributed shared memory

Defined in:

websockets/websocket_manager.cr

Constant Summary

SOCKETS = [] of HTTP::WebSocket

Class Method Summary

Instance Method Summary

Class Method Detail

def self.instance #

[View source]

Instance Method Detail

def add_socket(socket : HTTP::WebSocket) #

[View source]
def all_sockets #

[View source]
def remove_socket(socket : HTTP::WebSocket) #

[View source]