mirror of
https://github.com/godotengine/godot.git
synced 2025-10-31 21:51:22 +00:00
Added set_extra_headers() to WebSocketServer
This commit is contained in:
parent
c896ba8c8c
commit
fd4341fba4
7 changed files with 25 additions and 3 deletions
|
|
@ -42,6 +42,7 @@ WebSocketServer::~WebSocketServer() {
|
|||
|
||||
void WebSocketServer::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("is_listening"), &WebSocketServer::is_listening);
|
||||
ClassDB::bind_method(D_METHOD("set_extra_headers", "headers"), &WebSocketServer::set_extra_headers, DEFVAL(Vector<String>()));
|
||||
ClassDB::bind_method(D_METHOD("listen", "port", "protocols", "gd_mp_api"), &WebSocketServer::listen, DEFVAL(Vector<String>()), DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("stop"), &WebSocketServer::stop);
|
||||
ClassDB::bind_method(D_METHOD("has_peer", "id"), &WebSocketServer::has_peer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue