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