For the complete documentation index, see llms.txt. This page is also available as Markdown.

wsGetcount

⚠️ Not implemented in the current OSL CLI.

Description

wsGetcount allows you to get the number of messages on a websocket.

Parameters

wsGetcount takes no parameters.

Usage

ws_id = "url".newWebsocket()

if ws_id.wsHasnew() (
  count = ws_id.wsGetcount()
  // find how many messages you recieved
  loop count (
    message = ws_id.wsGetnext()
    // handle the message
  )
)

Last updated