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}
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.
You can find a complete realtime counter sample in example/
.