class Kemal::WebSocketHandler

Overview

Used for building a WebSocket route. For each WebSocket route a new handler is created and registered to global handlers.

Included Modules

Defined in:

kemal/websocket_handler.cr

Constant Summary

INSTANCE = new

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_route(path : String, &handler : HTTP::WebSocket, HTTP::Server::Context -> Void) #

[View source]
def call(context : HTTP::Server::Context) #

[View source]
def lookup_ws_route(path : String) #

[View source]
def routes : Radix::Tree(Kemal::WebSocket) #

[View source]
def routes=(routes) #

[View source]