Raze::WebSocketStack
Inherits Reference < Object
Constructors
new(handlers : Array(Raze::WebSocketHandler), &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
Sourcenew
Sourcenew(*handlers, &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
Sourcenew(*handlers)
SourceInstance methods
block
Sourceblock?
Sourceconcat(stack : Raze::WebSocketStack)
Sourcemiddlewares
Sourcenext(index, ws : HTTP::WebSocket, ctx : HTTP::Server::Context)
Sourcerun(ws : HTTP::WebSocket, ctx : HTTP::Server::Context)
Sourcetree
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
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