.wsHasnew()

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