Connecting to a WebSocket server, sending and receiving data. Just a little pratice for some HTML5 and CSS3 features, and of course TypeScript.
You can use the following commands: open|connect, infos|socketInfos, ping, subscribe, unsubscribe, addOrder, cancelOrder, close|disconnect|exit.
Actual commands, will be sent to the server in a JSON message {"event":YourCommand}. Others like infos or close won't send any message. If left iddle, the connection will drop.
You can have a look at the code on the GitHub repository.
The GitHub page URL for this project.
Check out the Kraken WebSockets API documentation here.
And finally the MDN documentation for the WebSocket Web API.
Do you mind saying so I know you are here ?