JSFiddle - React, Tailwind, and code Playground

by sandro_paganotti

JavaScript

// ws://echo.websocket.org 
    
var ws = new WebSocket('ws://echo.websocket.org');

ws.addEventListener('error', function(e){
    console.log(e);
}, false);