feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
37
api.hyungi.net/node_modules/pm2-axon/lib/sockets/pull.js
generated
vendored
Normal file
37
api.hyungi.net/node_modules/pm2-axon/lib/sockets/pull.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var Socket = require('./sock');
|
||||
|
||||
/**
|
||||
* Expose `PullSocket`.
|
||||
*/
|
||||
|
||||
module.exports = PullSocket;
|
||||
|
||||
/**
|
||||
* Initialize a new `PullSocket`.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
function PullSocket() {
|
||||
Socket.call(this);
|
||||
// TODO: selective reception
|
||||
}
|
||||
|
||||
/**
|
||||
* Inherits from `Socket.prototype`.
|
||||
*/
|
||||
|
||||
PullSocket.prototype.__proto__ = Socket.prototype;
|
||||
|
||||
/**
|
||||
* Pull sockets should not send messages.
|
||||
*/
|
||||
|
||||
PullSocket.prototype.send = function(){
|
||||
throw new Error('pull sockets should not send messages');
|
||||
};
|
||||
Reference in New Issue
Block a user