From 98473c2a84b4f07dde384e71d983c01fcbab0a1d Mon Sep 17 00:00:00 2001 From: Khafra Date: Wed, 5 Jun 2024 13:44:44 -0400 Subject: [PATCH] remove websocket experimental warning --- lib/web/websocket/websocket.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/web/websocket/websocket.js b/lib/web/websocket/websocket.js index 83d4ee94e30..109d7be2e2f 100644 --- a/lib/web/websocket/websocket.js +++ b/lib/web/websocket/websocket.js @@ -28,8 +28,6 @@ const { types } = require('node:util') const { ErrorEvent, CloseEvent } = require('./events') const { SendQueue } = require('./sender') -let experimentalWarned = false - // https://websockets.spec.whatwg.org/#interface-definition class WebSocket extends EventTarget { #events = { @@ -56,13 +54,6 @@ class WebSocket extends EventTarget { const prefix = 'WebSocket constructor' webidl.argumentLengthCheck(arguments, 1, prefix) - if (!experimentalWarned) { - experimentalWarned = true - process.emitWarning('WebSockets are experimental, expect them to change at any time.', { - code: 'UNDICI-WS' - }) - } - const options = webidl.converters['DOMString or sequence or WebSocketInit'](protocols, prefix, 'options') url = webidl.converters.USVString(url, prefix, 'url')