Peter Farr (1c61a3a6) at 13 Jul 01:03
Peter Farr (1c61a3a6) at 13 Jul 01:03
Fill out API
This commit is fairly large. It creates child APIs that live on a parent API and can call to the parent to handle sending off websocket messages.
There's more work to do but figured I would push this up since it's a substantial amount of code.
This commit is fairly large. It creates child APIs that live on a parent API and can call to the parent to handle sending off websocket messages.
There's more work to do but figured I would push this up since it's a substantial amount of code.
Peter Farr (1c61a3a6) at 19 Feb 01:11
Fill out API
Peter Farr (12cc969f) at 11 Feb 14:58
Mike Cronce (12cc969f) at 11 Feb 14:58
Fill out turntable request translations
This commit fills out creating various types of turntable.fm websocket
API requests by creating simple commands that can be easily serialized
into the correct message type for each various supported command.
Next steps will involve actually creating the turntable client itself
which will utilize these commands and request serializations.
Peter Farr (ebdff6a1) at 11 Feb 14:58
Mike Cronce (ebdff6a1) at 11 Feb 14:58
Ensure we only await once
In practice returning the PendingRequest is clunky because we have to await both the send() call, and the returned PendingRequest. This instead awaits the PendingRequest and returns the result directly, which results in a much nicer API for sending websocket requests.
Peter Farr (12cc969f) at 10 Feb 04:23
Fill out turntable request translations
This commit fills out creating various types of turntable.fm websocket
API requests by creating simple commands that can be easily serialized
into the correct message type for each various supported command.
Next steps will involve actually creating the turntable client itself
which will utilize these commands and request serializations.
In practice returning the PendingRequest is clunky because we have to await both the send() call, and the returned PendingRequest. This instead awaits the PendingRequest and returns the result directly, which results in a much nicer API for sending websocket requests.
Peter Farr (ebdff6a1) at 08 Feb 20:06
Ensure we only await once
Peter Farr (e2732b73) at 08 Feb 07:08
Mike Cronce (e2732b73) at 08 Feb 07:08
Add in ping to keep alive
Adds in pinging on 20s intervals to keep the connection alive if we have received no incoming messages.
Also sets up client and server binaries for testing, which currently work.
Adds in pinging on 20s intervals to keep the connection alive if we have received no incoming messages.
Also sets up client and server binaries for testing, which currently work.