WebSocket v0.1.0 WebSocket.Events

Summary

Types

event()
event ::
  {:add_client | :remove_client, pid} |
  {:send, tuple, pid}
state()
state :: [pid]

Functions

broadcast(ref, event, originator)
broadcast(atom, tuple, pid | nil) :: :ok
broadcast!(ref, event)
broadcast!(atom, tuple) :: :ok
handle_event(arg1, state)
handle_event(event, state) :: {:ok, state}
start_link(ref)
start_link(atom) :: {:ok, pid}
stop(ref)
stop(atom) :: :ok
subscribe(ref, pid)
subscribe(atom, pid) :: :ok
unsubscribe(ref, pid)
unsubscribe(atom, pid) :: :ok