Adds the ability to work with web sockets in Wolfram using Java-WebSocket
First compile java binary files using maven:
mvn package -f ./pom.xml
PacletInstall["KirillBelov/WebSocketLink"]
Import the package
Get["KirillBelov`WebSocketLink`"]
Create a new connection
connection1 = WebSocketConnect["wss://stream.binance.com:9443/ws/btcusdt@miniTicker"]
WebSocketConnectionObject[<>]
After serveral seconds you can view received data
Normal[connection1["Data"]]
Get list of subscribtions by sending a message
WebSocketSend[connection1, "{\"method\": \"LIST_SUBSCRIPTIONS\",\"id\": 3}"]
Association of all connections
WebSocketConnections[]
Close the connection
WebSocketClose[connection1]