> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/networking/websockets/.wsgetnext.md).

# wsGetnext

> ⚠️ **Not implemented in the current OSL CLI.**

## Description

wsGetnext allows you to get the next message from a websocket and then discards it.

## Parameters

wsGetnext takes no parameters.

## Usage

```javascript
ws_id = "url".newWebsocket()

if ws_id.wsHasnew() (
  message = ws_id.wsGetnext()
  // handle the message
)
```
