{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method RegisterServerWebSocketDriver | Netcode for Entities | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method RegisterServerWebSocketDriver

    RegisterServerWebSocketDriver(World, ref NetworkDriverStore, NetDebug, NetworkSettings)

    Register a WebSocketNetworkInterface NetworkDriver instance in driverStore. This are configured using the NetworkSettings passed in. The constructed driver does not use a reliable pipeline stage (websocket are already reliable) and the reliablePipeline instance is a NullPipelineStage.

    Declaration
    public static void RegisterServerWebSocketDriver(World world, ref NetworkDriverStore driverStore, NetDebug netDebug, NetworkSettings settings)
    Parameters
    Type Name Description
    World world

    Used for determining whether we are running in a client or server world.

    NetworkDriverStore driverStore

    Store for NetworkDriver.

    NetDebug netDebug

    For handling logging.

    NetworkSettings settings

    A list of the parameters that describe the network configuration.

    Remarks

    Not available for WebGL build. Always available in the Editor.

    In This Article
    Back to top
    Copyright © 2023 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)