Skip to content

KirillBelovTest/WebSocketLink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocketJLink

About

Adds the ability to work with web sockets in Wolfram using Java-WebSocket

Building

First compile java binary files using maven:

mvn package -f ./pom.xml

Installation

PacletInstall["KirillBelov/WebSocketLink"]

Using

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]

About

Web socket connection client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published