Skip to content

Commit

Permalink
remove websocket experimental warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev committed Jun 5, 2024
1 parent 5e4e2fb commit 98473c2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/web/websocket/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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<DOMString> or WebSocketInit'](protocols, prefix, 'options')

url = webidl.converters.USVString(url, prefix, 'url')
Expand Down

0 comments on commit 98473c2

Please sign in to comment.