WebSocketJLink: connecting and working with web sockets

◔

WebSocketJLink.nb (1.03 MB)

13 Likes

news-congrads-kkluyshnik-02-04-19.jpg – you have earned Featured Contributor Badge 2015-11-02_10-07-11.png
Your exceptional post has been selected for our editorial columns Staff Picks http://wolfr.am/StaffPicks and Publication Materials https://wolfr.am/PubMat and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

1 Like

I’m getting the following exception when calling WebSocketConnect["wss://stream.binance.com:9443/ws/btcusdt@miniTicker"] :

Java::excptn: A Java exception occurred: java.lang.ClassNotFoundException: websocketjlink.WebSocketJLinkClient
	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:398).

I’m using Mathematica 13.1 on MacOS and Java version 11.0.15

LoadJavaClass["websocketjlink.WebSocketJLinkClient"] doesn’t work, but LoadJavaClass["java.net.URL"] // Methods
works fine.

ExternalEvaluate["Java", "System.getProperty(\"java.version\")"] returns 11.0.15

Is there a workaround?

2 Likes

Hey! I’ll see what the problem might be soon. Can you write me in telegram/email? I want to clarify the details.

3 Likes

Yes, thank you so much, after your update to 1.0.1 it works perfectly on my Mac!

2 Likes

Thank you so much Kirill! I was in dire need of a solution for Secure Web Sockets like this one.

3 Likes