sanji-socket-ui

3.2.0 • Public • Published

sanji-socket-ui

Sanji socket service is part of Sanji UI framework and also it is a angular module. It just a socket wrapper for setup client socket.

NPM Package Quality Build Status Coverage Status Codacy Badge dependencies devdependencies semantic-release Commitizen friendly

Dependencies

Installation

Sanji socket service is based on es6 + webpack to development and embrace npm to install it.

npm install sanji-socket-ui --save

How to use

You need to include module first.

angular.module('webapp', ['sanji.socket'])

and then use socket as DI service.

class AppController {
  constructor(socket) {
    socket.on('connect', () => {
      console.info('connected');
    });
  }
}
AppController.$inject = ['socket'];

References

Contact

Author: Zack Yang © 2015

Support: if you find any problems with this library, open issue on Github

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i sanji-socket-ui

    Weekly Downloads

    7

    Version

    3.2.0

    License

    MIT

    Last publish

    Collaborators

    • zack9433