class Lattice::Handler

Overview

HTTP handler implementation for WebSocket connections. Manages connection lifecycle, client authentication, and message routing.

Included Modules

Defined in:

lattice/handler.cr

Constructors

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.


[View source]
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.


[View source]

Instance Method Detail

def call(context) #

[View source]
def klass : String #

[View source]
def path : String #

[View source]