angular2-websocket-mu-fork

0.6.12 • Public • Published

angular2websocket

Based on https://github.com/AngularClass/angular-websocket and migrated to Angular2

Installation

npm install angular2-websocket

Usage:

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)

Compilation

npm run typings
npm run compile
 

Readme

Keywords

none

Package Sidebar

Install

npm i angular2-websocket-mu-fork

Weekly Downloads

12

Version

0.6.12

License

none

Last publish

Collaborators

  • timelaw