pub struct BitFlyerWebSocketHandler<H: FnMut(BitFlyerChannelMessage) + Send + 'static> { /* private fields */ }
Expand description
A struct
that implements WebSocketHandler
Trait Implementations§
source§impl<H> WebSocketHandler for BitFlyerWebSocketHandler<H>where
H: FnMut(BitFlyerChannelMessage) + Send + 'static,
impl<H> WebSocketHandler for BitFlyerWebSocketHandler<H>where H: FnMut(BitFlyerChannelMessage) + Send + 'static,
source§fn websocket_config(&self) -> WebSocketConfig
fn websocket_config(&self) -> WebSocketConfig
Returns a prefix that will be appended to the URL of all the websocket connections being started using this handler.
source§fn handle_start(&mut self) -> Vec<WebSocketMessage>
fn handle_start(&mut self) -> Vec<WebSocketMessage>
Called when a new connection has been started, and returns messages that should be sent to the server. Read more
source§fn handle_message(&mut self, message: WebSocketMessage) -> Vec<WebSocketMessage>
fn handle_message(&mut self, message: WebSocketMessage) -> Vec<WebSocketMessage>
Called when the WebSocketConnection received a message, returns messages to be sent to the server.
source§fn handle_close(&mut self, reconnect: bool)
fn handle_close(&mut self, reconnect: bool)
Called when a websocket connection is closed. Read more