Is it possible to use WebSockets in Corvid?

Is it possible to use Websockets with Corvid and how, because I used this line of code and I am getting an error.
let socket = new WebSocket( “wss://javascript.info/article/websocket/demo/hello” );

WebSocket is not defined

You are right, WebSocket is not defined.

However, you can use the NPM library from the Package Manager :