hyperlane-plugin-websocket 21.13.4

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

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

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

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

pub(crate) struct UpgradeHook;

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

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

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

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

pub(crate) struct GroupChat;

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

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

pub(crate) struct PrivateChat;