summaryrefslogtreecommitdiff
path: root/modules/websocket
diff options
context:
space:
mode:
authorArnav Vijaywargiya <binarydigitz01@protonmail.com>2022-01-11 09:47:42 +0530
committerArnav Vijaywargiya <binarydigitz01@protonmail.com>2022-01-11 17:17:11 +0530
commit0c46f73b5e5e89ba8fbe1f2294f203b5e9df2d0a (patch)
tree14dbaba7255857cb7711f83f89e111f71f931385 /modules/websocket
parentb52f90e795e0de9c0e7056fd5c83d2c5e3d207af (diff)
Fixed incorrect property types
Diffstat (limited to 'modules/websocket')
-rw-r--r--modules/websocket/websocket_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/websocket_server.cpp b/modules/websocket/websocket_server.cpp
index b7249e4243..b3f0140b80 100644
--- a/modules/websocket/websocket_server.cpp
+++ b/modules/websocket/websocket_server.cpp
@@ -67,7 +67,7 @@ void WebSocketServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_handshake_timeout"), &WebSocketServer::get_handshake_timeout);
ClassDB::bind_method(D_METHOD("set_handshake_timeout", "timeout"), &WebSocketServer::set_handshake_timeout);
- ADD_PROPERTY(PropertyInfo(Variant::BOOL, "handshake_timeout"), "set_handshake_timeout", "get_handshake_timeout");
+ ADD_PROPERTY(PropertyInfo(Variant::FLOAT, "handshake_timeout"), "set_handshake_timeout", "get_handshake_timeout");
ADD_SIGNAL(MethodInfo("client_close_request", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::INT, "code"), PropertyInfo(Variant::STRING, "reason")));
ADD_SIGNAL(MethodInfo("client_disconnected", PropertyInfo(Variant::INT, "id"), PropertyInfo(Variant::BOOL, "was_clean_close")));