Based on https://github.com/AngularClass/angular-websocket and migrated to Angular2
npm install angular2-websocket
import {$WebSocket} from 'angular2-websocket/angular2-websocket'
var ws = new $WebSocket("url");
ws.send(event);
also ws.getDataStream() returns Subject to which you can attach an Observer (https://github.com/Reactive-Extensions/RxJS)
npm run compile