|
Switchboard SDK
|
SwitchboardWebSocketServer is a WebSocket server that handles incoming WebSocket connections. It processes JSON-RPC commands and manages WebSocket sessions. This server is designed to work with the Switchboard SDK and provides a way to interact with Switchboard objects over WebSockets. More...
#include <SwitchboardWebSocketServer.hpp>
Public Member Functions | |
| SwitchboardWebSocketServer (int port) | |
| Constructor for SwitchboardWebSocketServer. | |
| ~SwitchboardWebSocketServer () | |
| Destructor for SwitchboardWebSocketServer. | |
| void | start () |
| Starts the WebSocket server. | |
| void | stop () |
| Stops the WebSocket server. | |
| bool | isRunning () const |
| Checks if the server is running. | |
SwitchboardWebSocketServer is a WebSocket server that handles incoming WebSocket connections. It processes JSON-RPC commands and manages WebSocket sessions. This server is designed to work with the Switchboard SDK and provides a way to interact with Switchboard objects over WebSockets.
|
explicit |
Constructor for SwitchboardWebSocketServer.
| port | The port on which the WebSocket server will listen. |
| bool switchboard::SwitchboardWebSocketServer::isRunning | ( | ) | const |
Checks if the server is running.