WebSocketNetProtocol

API: WebSocketNetProtocol #

Inherits: MPNetProtocolBase

Websocket Network Protocol

Properties #

Type Name Default
bool secure
CryptoKey server_private_key
X509Certificate ssl_certificate

Methods #

Returns Type Syntax
MultiplayerPeer host ( Variant port, Variant bind_ip, Variant max_players )
MultiplayerPeer join ( Variant address, Variant port )

Property Descriptions #

bool secure

  • Default: none

Specify if you needs encryption in your web socket


CryptoKey server_private_key

  • Default: none

Secure Private key for server


X509Certificate ssl_certificate

  • Default: none

Trusted SSL certificate for server & client


Method Descriptions #

MultiplayerPeer host ( Variant port, Variant bind_ip, Variant max_players )

Host function


MultiplayerPeer join ( Variant address, Variant port )

There’s currently no description for this method.