Bingex.Socket behaviour (Bingex v0.1.8)
Provides an abstraction over WebSocket connections for BingX.
Summary
Functions
Sends a synchronous message.
Sends an asynchronous message.
Sends a message to the process to the specified PID.
Starts a WebSocket process.
Starts a WebSocket process linked to the current process.
Returns the pid
of a Socket process, nil
otherwise.
Types
Callbacks
@callback handle_disconnect( details :: WebSockex.connection_status_map(), state() ) :: {:stop, state()} | {:reconnect, state()}
Functions
Sends a synchronous message.
Sends an asynchronous message.
Sends a message to the process to the specified PID.
Starts a WebSocket process.
Starts a WebSocket process linked to the current process.
Returns the pid
of a Socket process, nil
otherwise.