class

Kemal::WebSocket

Inherits HTTP::WebSocketHandler < HTTP::Handler < Reference < Object

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

Constructors

new(path : String, &proc : HTTP::WebSocket, HTTP::Server::Context -> )
Source

Instance methods

call(context : HTTP::Server::Context)
Source
proc
Source