feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
26
api.hyungi.net/node_modules/pm2-axon/lib/sockets/pub-emitter.js
generated
vendored
Normal file
26
api.hyungi.net/node_modules/pm2-axon/lib/sockets/pub-emitter.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var PubSocket = require('./pub');
|
||||
|
||||
/**
|
||||
* Expose `SubPubEmitterSocket`.
|
||||
*/
|
||||
|
||||
module.exports = PubEmitterSocket;
|
||||
|
||||
/**
|
||||
* Initialzie a new `PubEmitterSocket`.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function PubEmitterSocket() {
|
||||
this.sock = new PubSocket;
|
||||
this.emit = this.sock.send.bind(this.sock);
|
||||
this.bind = this.sock.bind.bind(this.sock);
|
||||
this.connect = this.sock.connect.bind(this.sock);
|
||||
this.close = this.sock.close.bind(this.sock);
|
||||
}
|
||||
Reference in New Issue
Block a user