> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-nodejs/functions/startcommunicate-...args.md).

# startCommunicate(...args)

Starts a WebSocket communication channel to receive proxy events.

```javascript
startCommunicate(comType, port, password)
```

***

## Parameters

* **comType** (<mark style="color:green;">number</mark>) – Communication type (e.g., 1 = WebSocket).
* **port** (<mark style="color:green;">number</mark>) – Local port to bind the listener.
* **password** (<mark style="color:green;">string</mark>) – Token/secret for authentication.

## Return Value

void or number : Starts a WebSocket communication channel

## Example

```javascript
// example

sdk.startCommunicate(1, 8881, "token");

```
