1.0.2 • Published 8 years ago

ng2-atmosphere v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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