class Raze::WebSocketServerHandler

Defined in:

raze/websocket_server_handler.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(&proc : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]

Instance Method Detail

def add_stack(path, stack) #

[View source]
def call(ctx) #

[View source]
def lookup_route(path) #

[View source]