class HTTP::WebSocket
- HTTP::WebSocket
- Reference
- Object
Overview
NOTE To use WebSocket
, you must explicitly import it with require "http/web_socket"
Defined in:
wrench/http/web_socket.crClass Method Summary
- .accept(socket : IO)
- .handshake(socket : IO, host : String, port : Int32, path : String = "/", headers : HTTP::Headers = HTTP::Headers.new) : Protocol
- .websocket_upgrade_request?(request : HTTP::Request)
Instance Method Summary
Class Method Detail
def self.handshake(socket : IO, host : String, port : Int32, path : String = "/", headers : HTTP::Headers = HTTP::Headers.new) : Protocol
#