pub fn start(stream: S, callback: C, config: Option<WebSocketConfig>) -> MidHandshake<Self> {
        trace!("Server handshake initiated.");
        MidHandshake {
            machine: HandshakeMachine::start_read(stream),
            role: ServerHandshake {
                callback: Some(callback),
                config,
                error_code: None,
                _marker: PhantomData,
            },
        }
    }
/// Start server handshake. `callback` specifies a custom callback which the user can pass to
/// the handshake, this callback will be called when the a websocket client connnects to the
/// server, you can specify the callback if you want to add additional header to the client
/// upon join based on the incoming headers.
Start server handshake. `callback` specifies a custom callback which the user can pass to
the handshake, this callback will be called when the a websocket client connnects to the
server, you can specify the callback if you want to add additional header to the client
upon join based on the incoming headers.
Start server handshake . ` callback ` specifies a custom callback which the user can pass to the handshake this callback will be called when the a websocket client connnects to the server you can specify the callback if you want to add additional header to the client upon join based on the incoming headers .
pub fn start(stream: S, callback: C, config: Option<WebSocketConfig>) -> MidHandshake<Self> {
        trace!("Server handshake initiated.");
        MidHandshake {
            machine: HandshakeMachine::start_read(stream),
            role: ServerHandshake {
                callback: Some(callback),
                config,
                error_code: None,
                _marker: PhantomData,
            },
        }
    }
pub fn start ( stream : S , callback : C , config : Option < WebSocketConfig > ) -> MidHandshake < Self > { trace ! ( " " ) ; MidHandshake { machine : HandshakeMachine :: start_read ( stream ) , role : ServerHandshake { callback : Some ( callback ) , config , error_code : None , _marker : PhantomData , } , } }
Start server handshake.
Start server handshake .
stream
S
callback
C
config
Option<WebSocketConfig>
stream
S
callback
C
config
Option<WebSocketConfig>