0
如何傳遞net.socket類作爲參數? 我的代碼:將net.socket傳遞爲參數
this.server = net.createServer(this.onAccept.bind(this));
this.server.listen(this.port);
}
Server.prototype.onAccept = function() {
// PASS SOCKET AS ARGUMENT HERE
var client = new Client(ONLYMYSOCKETCLASS);