docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct WebSocketParameter

    Parameters for WebSocket connections.

    Implements
    INetworkParameter
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    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.

    Implements

    INetworkParameter
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)