steemex v0.1.0 Steemex

Summary

Functions

Closes the socket

Sends an event to the WebSocket server

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

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

Sends JSON encoded message to remote WS endpoint

Functions

call(sock_pid, params)
close(socket)

Closes the socket

init(list, conn_state \\ [])
onconnect(ws_req, state)
ondisconnect(arg, state)
send_event(server_pid, msg)

Sends an event to the WebSocket server

start_link(sender)

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

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)