BonyWs (bony_ws v0.1.0)

Documentation for BonyWs.

Link to this section Summary

Functions

Open a connection to the websocket server, finish the handshake and return the client process.

Send msg to a websocket server.

Link to this section Functions

Specs

connect(String.t()) :: {:ok, pid()}

Open a connection to the websocket server, finish the handshake and return the client process.

Current process will link to the client process, and receive the websocket messages.

The message type is {:ws_msg, {:done | :more, bytes} | :closed}.

Only support ipv4 addresses and domains without SSL.

Link to this function

send_msg(pid, msg)

Send msg to a websocket server.