added websocket constructor to main.js