graphene_client_ex v0.3.0 Graphene.WS

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

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

Functions

close(socket)

Closes the socket

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

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

websocket_info(arg1, conn_state, state)

Sends JSON encoded message to remote WS endpoint

websocket_terminate(reason, conn_state, state)