Struct WebSocketParameter
Parameters for WebSocket connections.
Implements
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
[Serializable]
public struct WebSocketParameter : INetworkParameter
Fields
Path
For WebSocket clients, the path to which WebSocket connections will be established. For WebSocket servers, the path on which new connections will be accepted. This setting is only meant to specify the actual path of the URL, not the entire URL (so if you want to connect to "127.0.0.1/some/path", you would specify "/some/path" here).
Declaration
public FixedString128Bytes Path
Field Value
Type | Description |
---|---|
FixedString128Bytes | URL path starting with "/". |
Methods
Validate()
Checks if the values for all fields are valid. This method will be automatically called when adding parameters to the NetworkSettings.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
bool | True if the parameter is valid, false otherwise. |