class HTTP::WebSocket

Overview

NOTE To use WebSocket, you must explicitly import it with require "http/web_socket"

Defined in:

wrench/http/web_socket.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.accept(socket : IO) #

[View source]
def self.handshake(socket : IO, host : String, port : Int32, path : String = "/", headers : HTTP::Headers = HTTP::Headers.new) : Protocol #

[View source]
def self.websocket_upgrade_request?(request : HTTP::Request) #

[View source]

Instance Method Detail

def run(auto_process : Bool) #

[View source]