ng2-atmosphere

1.0.2 • Public • Published

ng2-atmosphere

An Angular 2.0 Atmosphere service for connecting client applications to servers.

Installation

npm install ng2-atmosphere

Usage:

import {SocketService} from 'ng2-atmosphere'

@Component({
  selector: 'my-app',
  template:``,
  providers: [SocketService]
})
export class AppComponent implements OnInit {

  constructor(private _socketService: SocketService) {
    _socketService.dataStream.subscribe((data) => {
        console.log(data);
    });
  }

  ngOnInit() {
  }
}

compilation

npm install
npm tsc

Readme

Keywords

Package Sidebar

Install

npm i ng2-atmosphere

Weekly Downloads

0

Version

1.0.2

License

ISC

Last publish

Collaborators

  • adrianromanko