---
agentTools:
  projectIndex: https://docs.rainway.com/llms.txt
---

# Node.js SDK - RainwayConnectionEvents.close

[Home](https://docs.rainway.com/reference/about) > [@rainway/native](nodejs-sdk) > [RainwayConnectionEvents](./nodejs-sdk-rainwayconnectionevents) > [close](./nodejs-sdk-rainwayconnectionevents-close)

## RainwayConnectionEvents.close property

Raised when the connection to Rainway is closed.

<b>Signature:</b>

```typescript
close: (ev: CloseEvent) => EventReturnType;
```