class Raze::WebSocketStack

Defined in:

raze/websocket_stack.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(handlers : Array(Raze::WebSocketHandler), &block : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]
def self.new(&block : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]
def self.new(*handlers, &block : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]
def self.new(handlers : Array(Raze::WebSocketHandler)) #

[View source]
def self.new(*handlers) #

[View source]

Instance Method Detail

def block : HTTP::WebSocket, HTTP::Server::Context -> Nil? #

[View source]
def block? #

[View source]
def concat(stack : Raze::WebSocketStack) #

[View source]
def middlewares : Array(Raze::WebSocketHandler) #

[View source]
def next(index, ws : HTTP::WebSocket, ctx : HTTP::Server::Context) #

[View source]
def run(ws : HTTP::WebSocket, ctx : HTTP::Server::Context) #

[View source]
def tree : Raze::Radix(Raze::WebSocketStack) | Nil #

A sub tree is used in case this stack is indexed using a wildcard For example, if there is one stack at the path "/hel**" and another at the path "/hello", the latter would be in the subtree of the first


[View source]
def tree=(tree : Raze::Radix(Raze::WebSocketStack) | Nil) #

A sub tree is used in case this stack is indexed using a wildcard For example, if there is one stack at the path "/hel**" and another at the path "/hello", the latter would be in the subtree of the first


[View source]