> 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/.newwebsocket.md).

# newWebsocket

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

### Description

newWebsocket allows you to create a new websocket connection.

### Parameters

newWebsocket takes no parameters.

### Usage

```javascript
ws = "wss://url:port".newWebsocket()
// creates a new websocket connection and returns the id of the websocket connection allowing for other websocket commands to interact with it

ws = "wss://rotur.mistium.com:443".newWebsocket()
// returns a websocket id that can be used for other websocket commands

ws = "ws://localhost:443".newWebsocket()
// connect to a websocket thats on your local machine
```
