Class WebSocketParameterExtensions
Extensions for WebSocketParameter.
Inherited Members
Namespace: Unity.Networking.Transport
Assembly: Unity.Networking.Transport.dll
Syntax
public static class WebSocketParameterExtensionsMethods
GetWebSocketParameters(ref NetworkSettings)
Gets the WebSocketParameter in the settings.
Declaration
public static WebSocketParameter GetWebSocketParameters(this ref NetworkSettings settings)Parameters
| Type | Name | Description | 
|---|---|---|
| NetworkSettings | settings | Settings to get parameters from. | 
Returns
| Type | Description | 
|---|---|
| WebSocketParameter | Structure containing the WebSocket parameters. | 
WithWebSocketParameters(ref NetworkSettings, FixedString128Bytes)
Sets the NetworkConfigParameter in the settings.
Declaration
public static ref NetworkSettings WithWebSocketParameters(this ref NetworkSettings settings, FixedString128Bytes path = default)Parameters
| Type | Name | Description | 
|---|---|---|
| NetworkSettings | settings | Settings to modify. | 
| FixedString128Bytes | 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). Defaults to "/". | 
Returns
| Type | Description | 
|---|---|
| NetworkSettings | Settings structure with modified values. |