WebSocket API
WebSocket API
SDRconnect contains a WebSocket API that allows applications to be written that can utilise the funcationality of SDRconnect with very little effort. SDRconnect can be run with the UI visible, which can help development of WebSocket API applications and then run headless if you don’t want the SDRconnect UI visible. The WebSocket API can run in both cases. The WebSocket API specification can be found here:
We’ve prepared some examples of how the WebSocket API can be used:
with Node Red:
This is an example of two projects using Node Red with the SDRconnect WebSocket API
with Javascript in a browser:
and some examples of C# projects
SDRconnectWebSocketAPI.AudioPlayer – example to play audio IQ
SDRconnectWebSocketAPI.MinimalExample – example that just makes connection to SDRconnect’s websocket server
SDRconnectWebSocketAPI.RawIqWriter – example to write received IQ data to a local file
SDRconnectWebSocketAPI.SDRconnectCtl – example of a command line interface that sends commands to SDRconnect’s websocket server
You should be able to use dotnet run in each of these projects on any platform: