hyperlane-plugin-websocket 23.2.0

A WebSocket plugin for the Hyperlane framework, providing robust WebSocket communication capabilities and integrating with hyperlane-broadcast for efficient message dissemination.
Documentation
mod broadcast_type;
mod websocket;
mod websocket_map;

use super::*;

use std::{
    collections::HashSet,
    convert::Infallible,
    io,
    net::{IpAddr, Ipv4Addr, Ipv6Addr, SocketAddr},
    num::{
        NonZeroI8, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI128, NonZeroIsize, NonZeroU8,
        NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128, NonZeroUsize,
    },
    sync::OnceLock,
    task::{self, Poll},
    time::Duration,
};

use {
    hyperlane::*,
    tokio::{
        io::{AsyncRead, AsyncReadExt, AsyncWrite, AsyncWriteExt, DuplexStream, ReadBuf, duplex},
        spawn,
        sync::broadcast::error::RecvError,
        task::{JoinHandle, yield_now},
        time::{sleep, timeout},
    },
    tokio_broadcast::*,
};