phoenix_client v0.11.1 PhoenixClient.Transports.Websocket

Link to this section Summary

Functions

Callback implementation for PhoenixClient.Transport.close/1.

Receives JSON encoded Socket.Message from remote WS endpoint and forwards message to client sender process

Sends JSON encoded Socket.Message to remote WS endpoint

Link to this section Functions

Callback implementation for PhoenixClient.Transport.close/1.

Link to this function

onconnect(_, state)

Link to this function

ondisconnect(reason, state)

Link to this function

open(url, transport_opts)

Callback implementation for PhoenixClient.Transport.open/2.

Link to this function

websocket_handle(other_msg, arg2, state)

Receives JSON encoded Socket.Message from remote WS endpoint and forwards message to client sender process

Link to this function

websocket_info(arg1, arg2, state)

Sends JSON encoded Socket.Message to remote WS endpoint

Link to this function

websocket_terminate(reason, conn_state, state)