class Mitm::WebSocketHandler
- Mitm::WebSocketHandler
- HTTP::WebSocketHandler
- Reference
- Object
Overview
The class is a websocket handler, that lets the websockets go through the proxy to the target host
Defined in:
websocket_handler.crConstructors
Instance Method Summary
-
#new_socket_callback : Proc(String, String, String, HTTP::Client::TLSContext, HTTP::Headers, HTTP::WebSocket, Nil) | Nil
Proc to call when a websocket to the target host needs to be created.
-
#new_socket_callback=(new_socket_callback : Proc(String, String, String, HTTP::Client::TLSContext, HTTP::Headers, HTTP::WebSocket, Nil) | Nil)
Proc to call when a websocket to the target host needs to be created.
Constructor Detail
Instance Method Detail
def new_socket_callback : Proc(String, String, String, HTTP::Client::TLSContext, HTTP::Headers, HTTP::WebSocket, Nil) | Nil
#
Proc to call when a websocket to the target host needs to be created. Make sure you assign it, or client socket will be immediately closed
def new_socket_callback=(new_socket_callback : Proc(String, String, String, HTTP::Client::TLSContext, HTTP::Headers, HTTP::WebSocket, Nil) | Nil)
#
Proc to call when a websocket to the target host needs to be created. Make sure you assign it, or client socket will be immediately closed