phoenix_client v0.6.0 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(arg, state)
Link to this function open(url, transport_opts)

Callback implementation for PhoenixClient.Transport.open/2.

Link to this function websocket_handle(arg, conn_state, state)

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

Link to this function websocket_info(arg1, conn_state, state)

Sends JSON encoded Socket.Message to remote WS endpoint

Link to this function websocket_terminate(reason, conn_state, state)