WebSocketServer Properties |
The WebSocketServer type exposes the following members.
Name | Description | |
---|---|---|
AllowObjectDecoding | Deprecated. Use get_var and put_var parameters instead. If true, the PacketPeer will allow encoding and decoding of object via GetVar(Boolean) and PutVar(Object, Boolean). Warning: Deserialized objects can contain code which gets executed. Do not use this option if the serialized object comes from untrusted sources to avoid potential security threats such as remote code execution. | |
BindIp | When not set to * will restrict incoming connections to the specified IP address. Setting bind_ip to 127.0.0.1 will cause the server to listen only to the local host. | |
CaChain | When using SSL (see PrivateKey and SslCertificate), you can set this to a valid X509Certificate to be provided as additional CA chain information during the SSL handshake. | |
DynamicObject |
Gets a new DynamicGodotObject associated with this instance.
(Inherited from Object.) | |
EncodeBufferMaxSize | Maximum buffer size allowed when encoding Variants. Raise this value to support heavier memory allocations. The PutVar(Object, Boolean) method allocates memory on the stack, and the buffer used will grow automatically to the closest power of two to match the size of the Variant. If the Variant is bigger than encode_buffer_max_size, the method will error out with . | |
NativeInstance | (Inherited from Object.) | |
PrivateKey | When set to a valid CryptoKey (along with SslCertificate) will cause the server to require SSL instead of regular TCP (i.e. the wss:// protocol). | |
RefuseNewConnections | If true, this NetworkedMultiplayerPeer refuses new connections. | |
SslCertificate | When set to a valid X509Certificate (along with PrivateKey) will cause the server to require SSL instead of regular TCP (i.e. the wss:// protocol). | |
TransferMode | The manner in which to send packets to the target_peer. See NetworkedMultiplayerPeerTransferModeEnum. |