class Raze::WebSocketStack
- Raze::WebSocketStack
- Reference
- Object
Defined in:
raze/websocket_stack.crConstructors
- .new(handlers : Array(Raze::WebSocketHandler), &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
- .new(&block : HTTP::WebSocket, HTTP::Server::Context -> Void)
- .new(*handlers, &block : HTTP::WebSocket, HTTP::Server::Context -> Void)
- .new(handlers : Array(Raze::WebSocketHandler))
- .new(*handlers)
Instance Method Summary
- #block : HTTP::WebSocket, HTTP::Server::Context -> Nil?
- #block?
- #concat(stack : Raze::WebSocketStack)
- #middlewares : Array(Raze::WebSocketHandler)
- #next(index, ws : HTTP::WebSocket, ctx : HTTP::Server::Context)
- #run(ws : HTTP::WebSocket, ctx : HTTP::Server::Context)
-
#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
-
#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
Constructor Detail
Instance Method Detail
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