Struct kiteconnect::ticker::WebSocketHandler[][src]

pub struct WebSocketHandler<T> where
    T: KiteTickerHandler
{ /* fields omitted */ }

Methods

impl<T> WebSocketHandler<T> where
    T: KiteTickerHandler
[src]

Subscribe to a list of instrument_tokens

Unsubscribe the given list of instrument_tokens

Resubscribe to all current subscribed tokens

Set streaming mode for the given list of tokens.

Trait Implementations

impl<T> Handler for WebSocketHandler<T> where
    T: KiteTickerHandler
[src]

Implements the Handler trait on KiteTicker which provides all the callbacks methods ws-rs library

A method for creating the initial handshake request for WebSocket clients. Read more

Called when the WebSocket handshake is successful and the connection is open for sending and receiving messages. Read more

Called on incoming messages.

Called any time this endpoint receives a close control frame. This may be because the other endpoint is initiating a closing handshake, or it may be the other endpoint confirming the handshake initiated by this endpoint. Read more

Called when an error occurs on the WebSocket.

Called when a request to shutdown all connections has been received.

A method for handling the low-level workings of the request portion of the WebSocket handshake. Read more

A method for handling the low-level workings of the response portion of the WebSocket handshake. Read more

Called when a timeout is triggered. Read more

Called when a timeout has been scheduled on the eventloop. Read more

A method for handling incoming frames. Read more

A method for handling outgoing frames. Read more

A method for wrapping a client TcpStream with Ssl Authentication machinery Read more

A method for wrapping a server TcpStream with Ssl Authentication machinery Read more

Auto Trait Implementations

impl<T> Send for WebSocketHandler<T> where
    T: Send

impl<T> Sync for WebSocketHandler<T> where
    T: Send