---
page_type: error
code: 31921
message: "31921: Stream - WebSocket - Close Error"
level: ERROR
product: Programmable Voice
---

## Description

The remote server has closed the WebSocket connection

### Possible Causes

- The remote server ended the connection with a termination code listed in https://tools.ietf.org/html/rfc6455#section-7.4.1
- The Media Stream has received a websocket close event defined by https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent

### Possible Solutions

- Verify error logs in the remote websocket server