Phoenix.SocketClient.Transports.OptimizedWebsocket (phoenix_socket_client v0.8.0)

View Source

WebSocket transport using HTTP.WebSocket with TCP socket options.

This transport preserves the public options from the previous optimized transport while using :http_web_socket as the underlying WebSocket client.

Summary

Functions

Closes the WebSocket connection.

Gets current connection statistics.

Opens a WebSocket connection with TCP options.

Functions

close(socket)

Closes the WebSocket connection.

get_stats(socket_pid)

Gets current connection statistics.

open(url, transport_opts)

Opens a WebSocket connection with TCP options.