Raze::WebSocketServerHandler
Inherits HTTP::WebSocketHandler < HTTP::Handler < Reference < Object
Constants
INSTANCE = new do |sock, ctx|
lookup_result = Raze::WebSocketServerHandler::INSTANCE.lookup_route(ctx.request.path)
ctx.params = lookup_result.params
stack = lookup_result.payload.as(Raze::WebSocketStack)
content = stack.run(sock, ctx)
end
Constructors
new
SourceInstance methods
add_stack(path, stack)
Sourcecall(ctx)
Sourcelookup_route(path)
Source