class

Raze::WebSocketStack

Inherits Reference < Object

Constructors

new(handlers : Array(Raze::WebSocketHandler), &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
Source
new(*handlers, &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
Source
new(handlers : Array(Raze::WebSocketHandler))
Source
new(*handlers)
Source

Instance methods

block
Source
block?
Source
middlewares
Source
next(index, ws : HTTP::WebSocket, ctx : HTTP::Server::Context)
Source
run(ws : HTTP::WebSocket, ctx : HTTP::Server::Context)
Source
tree

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

Source
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

Source