shimmer/ws/ws_utils
Functions
pub fn gateway_heartbeat(sequence: Int, conn: Connection) -> Nil
pub fn gateway_heartbeat_null(conn: Connection) -> Nil
pub fn gateway_identify(token: String, intents: Int, conn: Connection) -> Nil
Sends an identify packet to the gateway
pub fn open_gateway() -> Result(Connection, Nil)
Opens a connection to the gateway.
pub fn ws_frame_to_packet(frame: String) -> Result(
Packet,
ShimmerError,
)