View Source ow_session_util (overworld v2.0.0)

Summary

Functions

Set the session to disconnected state and run the appropriate callback handler

Send a message to a list of clients

Calculate the latency based on the RTT to the client

Request a new session, or rejoin an existing one

Functions

-spec disconnect(pid()) -> ok.

Set the session to disconnected state and run the appropriate callback handler

Link to this function

notify_clients(MsgType, Msg, Rest)

View Source
-spec notify_clients(atom(), map(), [pid()]) -> ok.

Send a message to a list of clients

Link to this function

session_ping(Msg, SessionPID)

View Source
-spec session_ping(map(), pid()) -> {atom(), map()}.

Calculate the latency based on the RTT to the client

Link to this function

session_request(Msg, SessionPID)

View Source
-spec session_request(map(), pid()) -> ok.

Request a new session, or rejoin an existing one