hyperlane-plugin-websocket 14.0.5

A WebSocket plugin for the Hyperlane framework, providing robust WebSocket communication capabilities and integrating with hyperlane-broadcast for efficient message dissemination.
Documentation
use crate::*;

pub(crate) struct TaskPanicHook {
    pub(crate) response_body: String,
    pub(crate) content_type: String,
}

pub(crate) struct RequestErrorHook {
    pub(crate) response_status_code: ResponseStatusCode,
    pub(crate) response_body: String,
}

pub(crate) struct RequestMiddleware {
    pub(crate) socket_addr: String,
}

pub(crate) struct UpgradeHook;

pub(crate) struct ConnectedHook {
    pub(crate) receiver_count: ReceiverCount,
    pub(crate) data: String,
    pub(crate) group_broadcast_type: BroadcastType<String>,
    pub(crate) private_broadcast_type: BroadcastType<String>,
}

pub(crate) struct SendedHook {
    pub(crate) msg: String,
}

pub(crate) struct GroupChatRequestHook {
    pub(crate) body: RequestBody,
    pub(crate) receiver_count: ReceiverCount,
}

pub(crate) struct GroupClosedHook {
    pub(crate) body: String,
    pub(crate) receiver_count: ReceiverCount,
}

pub(crate) struct GroupChat;

pub(crate) struct PrivateChatRequestHook {
    pub(crate) body: RequestBody,
    pub(crate) receiver_count: ReceiverCount,
}

pub(crate) struct PrivateClosedHook {
    pub(crate) body: String,
    pub(crate) receiver_count: ReceiverCount,
}

pub(crate) struct PrivateChat;