BonyWs

A light weight websocket client. You can handle data frame by frame.

Example:

iex> {:ok, pid} = BonyWs.connect "ws://echo.websocket.org"
{:ok, #PID<0.228.0>}
iex> BonyWs.send_msg pid, "hello"
:ok  
iex> flush
{:ws_msg, {:done, "hello"}}
:ok

Limitations

Only support ipv4 addresses and domains without SSL now.

Installation

If available in Hex, the package can be installed by adding bony_ws to your list of dependencies in mix.exs:

def deps do
  [
    {:bony_ws, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/bony_ws.