cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
WebSocket demo using Stackexchange
Craige_Hales
Super User

Blog post:WebSocket 

 

This is a demo of using JSL->Python->WebSocket->Stackexchange to make a live GUI showing real-time updates at the stackexchange universe. Windows JMP 16 works. Mac untested.

 

To look at the source code, either rename the .jmpaddin with a .zip extension, or install it and use JMP's View->Add-ins menu to navigate to the install folder.

 

Update: the add-in now waits 1 second between each icon fetch to prevent being blocked by the server. Probably doesn't need to be a full second. There are ~180 icons, so the progress bar takes 3 minutes.

Comments

Apparently StackExchange now needs a secure websocket. Around line 403 change ws: to wss:

ws = websocket.WebSocketApp( "wss://qa.sockets.stackexchange.com/",

You can find the file using View->add-ins choose websocket, click home folder, look at websocket.jsl.

Recommended Articles