Struct sota::gateway::websocket::Websocket [] [src]

pub struct Websocket {
    pub server: String,
    pub clients: Arc<Mutex<HashMap<Token, WsSender>>>,
}

The Websocket gateway allows connected clients to listen to Events that happen in the SOTA client.

Fields

server
clients

Trait Implementations

impl Gateway for Websocket
[src]

fn initialize(&mut self, itx: Sender<Interpret>) -> Result<(), String>

fn pulse(&self, event: Event)

fn start(&mut self, itx: Sender<Interpret>, erx: Receiver<Event>)