spoke/mqtt_js/internal/websocket

Types

pub type WebSocket

Values

pub fn close(socket: WebSocket) -> Nil
pub fn connect(
  url: String,
  send: fn(core.Input) -> Nil,
) -> WebSocket
pub fn send(
  socket: WebSocket,
  bytes: bytes_tree.BytesTree,
) -> Result(Nil, String)
Search Document