shimmer/ws/event_loop
Types
pub type IdentifyInfo {
IdentifyInfo(token: String, intents: Int)
}
Constructors
-
IdentifyInfo(token: String, intents: Int)
pub type Spec {
Spec(
init: fn() -> State,
handle_message: fn(Message, State) -> State,
)
}
Constructors
-
Spec( init: fn() -> State, handle_message: fn(Message, State) -> State, )
Functions
pub fn websocket_actor(identify_info: IdentifyInfo) -> Result(
Pid,
Dynamic,
)