class

HTTP::WebSocket

Inherits Reference / Object

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

Class methods

accept(socket : IO)
Source
handshake(socket : IO, host : String, port : Int32, path : String = "/", headers : HTTP::Headers = HTTP::Headers.new) : Protocol
Source
websocket_upgrade_request?(request : HTTP::Request)
Source

Instance methods

run(auto_process : Bool)
Source