.NET - NewWebsocket()

Creates a new Websocket.

using Nitric.Sdk;
var websocket = Nitric.Websocket("public");
Nitric.Run();

Parameters

  • Name
    name
    Required
    Required
    Type
    string
    Description

    The unique name of this Websocket within the app. Subsequent calls to Websocket with the same name will return the same object.

Examples

Create a Websocket

using Nitric.Sdk;
var websocket = Nitric.Websocket("public");
Nitric.Run();

See also

Last updated on Oct 11, 2024