class Kemal::WebSocket

Overview

Takes 2 parameters: path and a handler to specify what action to be done if the route is matched.

Defined in:

kemal/websocket.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def call(context : HTTP::Server::Context) #

[View source]
def proc : HTTP::WebSocket, HTTP::Server::Context -> Nil #

[View source]