summaryrefslogtreecommitdiffstats
path: root/modules/websocket/websocket_peer.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/websocket/websocket_peer.h')
-rw-r--r--modules/websocket/websocket_peer.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/websocket/websocket_peer.h b/modules/websocket/websocket_peer.h
index 609e3fd6b4..e69c8fa756 100644
--- a/modules/websocket/websocket_peer.h
+++ b/modules/websocket/websocket_peer.h
@@ -73,7 +73,8 @@ protected:
int outbound_buffer_size = DEFAULT_BUFFER_SIZE;
int inbound_buffer_size = DEFAULT_BUFFER_SIZE;
- int max_queued_packets = 2048;
+ int max_queued_packets = 4096;
+ uint64_t heartbeat_interval_msec = 0;
public:
static WebSocketPeer *create(bool p_notify_postinitialize = true) {
@@ -119,6 +120,9 @@ public:
void set_max_queued_packets(int p_max_queued_packets);
int get_max_queued_packets() const;
+ double get_heartbeat_interval() const;
+ void set_heartbeat_interval(double p_interval);
+
WebSocketPeer();
~WebSocketPeer();
};