disable_ws_hook

Attribute Macro disable_ws_hook 

Source
#[disable_ws_hook]
Expand description

Disables the default WebSocket hook.

This attribute macro disables the default WebSocket handling logic, allowing for a fully custom implementation. This macro requires the #[hyperlane(server: Server)] macro to be used to define the server instance.

§Usage

use hyperlane::*;
use hyperlane_macros::*;

#[disable_ws_hook("/")]
async fn custom_ws_logic(ctx: Context) {
    // Custom logic to replace default WebSocket hook
}

§Dependencies

This macro depends on the #[hyperlane(server: Server)] macro to define the server instance.