• /
  • EnglishEspañolFrançais日本語한국어Português
  • Inicia sesiónComenzar ahora

Websockets

What does this feature do?

This allows monitoring the health and traffic of your websockets connections.

A new property is available in the browser agent’s init object called web_sockets. This setting controls whether to use the websockets feature in the agent. Available in the Browser Pro or Pro + SPA agent, version 1.318.0 or greater.

How do I use it?

To use this feature, you will need to visit your app settings page and turn the "Enable websockets" toggle to on. This setting is off by default.

NerdGraph can be used as an alternative to turn the setting on and off. To do so, run a mutation query on the browserSettings graphQL object for the browserWebSockets property, setting enabled to true or false.

Once enabled, data collection for websockets is automatic after re-deploying the agent. The websockets data is collected as WebSocket events including connection metrics, messages received, data sent, and how the connection was closed. Each WebSocket instance is tracked independently and emits one event per connection lifetime.

Additional considerations

  • If session traces are enabled, WebSocket events can be linked through the sessionTraceId property as part of your session traces.
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.