Skip to content
Navigation

Open the conversation WebSocket

Upgrade to a WebSocket with a ticket from POST /_cv/{cv}/ticket in ticket and the subprotocol run.cv.v1 only. Frames are { items: [...] }. Close codes: 1000, 1011, 4001 (the socket passed its session expiry), 4004, 4008. The server spends the ticket before it checks the request, so a ticket in a request log is always spent. No upgrade, or a subprotocol other than run.cv.v1 (such as a session token), gets 400. A spent, expired or other-conversation ticket gets 401, and a wrong origin gets 403, before the upgrade.

GET
https://{org}.cloudraker.run/_cv/{cv}/socket
Try it
Path parameters
Query parameters
Live API request

Path parameters

  • cv
    string
    required

    The conversation id (cv_...).

Query parameters

  • ticket
    string
    required

    The one-time ticket from POST /_cv/{cv}/ticket.

  • after
    optional
    integer

    Replay the durable items after this seq.

    default: 0

Header parameters

  • Sec-WebSocket-Protocol
    string
    required

    run.cv.v1 only.

Returns

101

Switching protocols. The server echoes run.cv.v1.

400

Error. See the code table in the guides.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • run_id
      optional
      string
    • details
      optional
      unknown

401

Error. See the code table in the guides.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • run_id
      optional
      string
    • details
      optional
      unknown

403

Error. See the code table in the guides.
JSON
  • error
    object
    required
    • code
      string
      required
    • message
      string
      required
    • run_id
      optional
      string
    • details
      optional
      unknown

Type to search…

↑↓ navigate↵ selectEsc close