diff options
author | Nathan Franke <natfra@pm.me> | 2021-09-29 21:06:28 -0500 |
---|---|---|
committer | Nathan Franke <natfra@pm.me> | 2021-12-04 15:25:13 -0600 |
commit | de7873c2d87c3ee8af8c27e35f49767fcc384e75 (patch) | |
tree | 6fdec47979edaa02a48191905e69a542cf16b80a /modules/websocket/editor_debugger_server_websocket.h | |
parent | 2a9dd654bc0197dd864df61b5b37e302022c2871 (diff) |
Auto-Increment Debugger Port
Note: This PR also changes the port of the GDScript Language Server from 6008 to 6005. This opens enough ports above the debug port (6007) for this change to be useful.
Diffstat (limited to 'modules/websocket/editor_debugger_server_websocket.h')
-rw-r--r-- | modules/websocket/editor_debugger_server_websocket.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/websocket/editor_debugger_server_websocket.h b/modules/websocket/editor_debugger_server_websocket.h index 14ab0109b2..1e5ea66146 100644 --- a/modules/websocket/editor_debugger_server_websocket.h +++ b/modules/websocket/editor_debugger_server_websocket.h @@ -40,6 +40,7 @@ class EditorDebuggerServerWebSocket : public EditorDebuggerServer { private: Ref<WebSocketServer> server; List<int> pending_peers; + String endpoint; public: static EditorDebuggerServer *create(const String &p_protocol); @@ -47,12 +48,13 @@ public: void _peer_connected(int p_peer, String p_protocol); void _peer_disconnected(int p_peer, bool p_was_clean); - void poll() override; - Error start(const String &p_uri) override; - void stop() override; - bool is_active() const override; - bool is_connection_available() const override; - Ref<RemoteDebuggerPeer> take_connection() override; + virtual void poll() override; + virtual String get_uri() const override; + virtual Error start(const String &p_uri = "") override; + virtual void stop() override; + virtual bool is_active() const override; + virtual bool is_connection_available() const override; + virtual Ref<RemoteDebuggerPeer> take_connection() override; EditorDebuggerServerWebSocket(); ~EditorDebuggerServerWebSocket(); |