Create Channels
    • Dark
      Light
    • PDF

    Create Channels

    • Dark
      Light
    • PDF

    Article summary

    Create a public channel.

    Method

    Requires Auth

    Permission

    createChannel

    Yes

    create-c

    Payload parameters

    Argument

    Example

    Required

    Description

    name

    channelname

    Required

    The name of the channel.

    members

    ["rocket.cat"]

    Optional; Default: []

    An array of usernames, represented as strings, for the users designated to be included in the channel. If the array is empty, only the user making the request to this method will be added to the channel.

    readOnly

    true

    Optional; Default: false

    Set if the channel is read-only or not. The value must be boolean.

    Example call

    {
        "msg": "method",
        "method": "createChannel",
        "id": "2",
        "params": [
            "test-websocket",
            ["doe.john"],
            false
        ]
    }

    Example response

    {
        "msg": "result",
        "id": "2",
        "result": [
            { "rid": "BBkfgYT2azf7RPTTg" }
        ]
    }


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence