class WS_Middleware

Overview

Accept registrations of websocket protocols. Accept websocket connections on behalf of those protocols. This is meant to be part of a middleware stack associated with HTTP::Server.

Included Modules

Defined in:

ws_service.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.instance #

[View source]

Instance Method Detail

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

Accept a websocket connection from the client.


[View source]
def finalize #

[View source]
def register(path : String, protocol : WS_Service.class) #

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

[View source]