summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-11 14:34:18 +0100
committerGitHub <noreply@github.com>2022-01-11 14:34:18 +0100
commitd40d86b959eea69cea16199390243abdbaa24621 (patch)
treebec5aba288d12b7a172cea7ef17d40937604cd8d /modules
parentdcd2364dacc6c0af2e949ca34dd6e7f6e75e7d5c (diff)
parent0c46f73b5e5e89ba8fbe1f2294f203b5e9df2d0a (diff)
Merge pull request #56667 from Ice-Cube69/fix_incorrect_property_types
Diffstat (limited to 'modules')
-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")));