graphene_client_ex v0.4.0 Graphene.WS

Starts the WebSocket server for given ws URL. Received messages are forwarded to the sender pid

Link to this section Summary

Functions

Closes the socket

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

Sends JSON encoded message to remote WS endpoint

Link to this section Functions

Closes the socket

Link to this function init(list, conn_state \\ [])
Link to this function onconnect(ws_req, state)
Link to this function ondisconnect(arg, state)
Link to this function start_link(url)
Link to this function websocket_handle(arg, conn_state, state)

Receives JSON encoded 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 message to remote WS endpoint

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