Skip to content

otp-interop/web_socket_dist

Repository files navigation

web_socket_dist

Erlang distribution over WebSockets.

Use the WebSocketDist.WebSocket module with tcp_filter_dist to perform Erlang distribution over WebSockets.

TCPFilter.set_socket(WebSocketDist.WebSocket)

You can also set this socket when starting the TCPFilter in your supervisor:

{TCPFilter, filter: MyApp.Filter, socket: TCPFilter.SSLSocket, name: TCPFilter}

Installation

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

def deps do
  [
    {:web_socket_dist, "~> 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/web_socket_dist.

Example

You can find a complete realtime counter sample in example/.

websocketdist.mp4

About

Erlang distribution over WebSockets.

Resources

Stars

Watchers

Forks

Packages