Serial. Ws Guide

var socket = new WebSocket('ws://localhost:8080');