diff options
author | Oğuzhan Eroğlu <rohanrhu2@gmail.com> | 2022-04-12 17:50:53 +0300 |
---|---|---|
committer | Oğuzhan Eroğlu <rohanrhu2@gmail.com> | 2022-04-12 17:50:53 +0300 |
commit | fd4341fba46b8e78eea2e7efeae74038f7f55c4b (patch) | |
tree | 0b12e2b3223f04dd5705cdfa5e7feb346879a108 /modules/websocket/doc_classes | |
parent | c896ba8c8ca61c4c20c325944222c8c766c707d4 (diff) |
Added set_extra_headers() to WebSocketServer
Diffstat (limited to 'modules/websocket/doc_classes')
-rw-r--r-- | modules/websocket/doc_classes/WebSocketServer.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/websocket/doc_classes/WebSocketServer.xml b/modules/websocket/doc_classes/WebSocketServer.xml index ef3279aac4..46b0274de3 100644 --- a/modules/websocket/doc_classes/WebSocketServer.xml +++ b/modules/websocket/doc_classes/WebSocketServer.xml @@ -60,6 +60,13 @@ If [code]false[/code] is passed instead (default), you must call [PacketPeer] functions ([code]put_packet[/code], [code]get_packet[/code], etc.), on the [WebSocketPeer] returned via [code]get_peer(id)[/code] to communicate with the peer with given [code]id[/code] (e.g. [code]get_peer(id).get_available_packet_count[/code]). </description> </method> + <method name="set_extra_headers"> + <return type="void" /> + <argument index="0" name="headers" type="PackedStringArray" default="PackedStringArray()" /> + <description> + Sets additional headers to be sent to clients during the HTTP handshake. + </description> + </method> <method name="stop"> <return type="void" /> <description> |