class Mitm::WebSocketHandler

Overview

The class is a websocket handler, that lets the websockets go through the proxy to the target host

Defined in:

websocket_handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

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


[View source]
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


[View source]