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

wsHasnew

⚠️ Not implemented in the current OSL CLI.

Description

wsHasnew allows you to check if a websocket has received new data.

Parameters

wsHasnew takes no parameters.

Usage

ws_id = "url".newWebsocket()

if ws_id.wsHasnew() (
  // handle the new messages using ws_id.wsGetnext() to get the next message and then discard it
)

Last updated