class Lattice::Handler
- Lattice::Handler
- Reference
- Object
Overview
HTTP handler implementation for WebSocket connections. Manages connection lifecycle, client authentication, and message routing.
Included Modules
- HTTP::Handler
Defined in:
lattice/handler.crConstructors
-
.new(path : String, klass : String, socket_factory : Proc(HTTP::WebSocket, HTTP::Server::Context, ClientSocket))
Creates a new WebSocket handler with the specified path and client socket configuration.
-
.new(path : String, klass : String, &block : HTTP::WebSocket, HTTP::Server::Context -> ClientSocket)
Creates a new WebSocket handler using a block as the socket factory.
Instance Method Summary
Constructor Detail
def self.new(path : String, klass : String, socket_factory : Proc(HTTP::WebSocket, HTTP::Server::Context, ClientSocket))
#
Creates a new WebSocket handler with the specified path and client socket configuration.
def self.new(path : String, klass : String, &block : HTTP::WebSocket, HTTP::Server::Context -> ClientSocket)
#
Creates a new WebSocket handler using a block as the socket factory.