class Raze::WebSocketChannel

Overview

A group of websockets

Defined in:

raze/websocket_channel.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(channel_name : String) #

[View source]

Instance Method Detail

def add(sock) #

[View source]
def broadcast(msg : String) #

[View source]
def channel_name : String #

[View source]
def channel_name=(channel_name : String) #

[View source]
def remove(sock : HTTP::WebSocket) #

[View source]
def remove(sock : HTTP::WebSocket, &block : Raze::WebSocketChannel -> _) #

[View source]
def size #

[View source]
def websockets : Array(HTTP::WebSocket) #

[View source]
def websockets=(websockets : Array(HTTP::WebSocket)) #

[View source]