Robo3D / Robo-iOS-Beta

1 stars 0 forks source link

Tap into web sockets? #30

Open victorevector opened 7 years ago

victorevector commented 7 years ago

@foosel

Currently the iOS app is capturing printer events by polling the Octoprint server via its REST API. Could you point us in the right direction on how to tap into Octoprint's websocket capabilities. The official documentation doesn't explain how.

foosel commented 7 years ago

No docs for that yet, sorry, but the python client implementation might help, it's one file: https://github.com/foosel/OctoPrint/blob/master/src/octoprint_client/__init__.py

Most important parts is probably this method.