wsHasnew
Last updated
⚠️ Not implemented in the current OSL CLI.
wsHasnew allows you to check if a websocket has received new data.
wsHasnew takes no parameters.
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