Licence
MIT
Version
3.2.0
Deps
0
Vulns
0
Weekly
0
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.
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



