Added set_extra_headers() to WebSocketServer
This commit is contained in:
parent
c896ba8c8c
commit
fd4341fba4
7 changed files with 25 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue