Lines Matching refs:sockets
107 this.sockets = ObjectCreate(null);
170 if (this.sockets[name])
171 count += this.sockets[name].length;
205 const sockets = ObjectValues(this.sockets);
206 for (let i = 0; i < sockets.length; i++) {
207 sockets[i].on('keylog', this[kOnKeylog]);
259 if (!this.sockets[name]) {
260 this.sockets[name] = []; property
277 const sockLen = freeLen + this.sockets[name].length;
283 ArrayPrototypePush(this.sockets[name], socket);
327 if (!this.sockets[name]) {
328 this.sockets[name] = []; property
330 ArrayPrototypePush(this.sockets[name], s);
332 debug('sockets', name, this.sockets[name].length, this.totalSocketCount);
396 const sockets = agent.freeSockets;
397 if (ArrayPrototypeSome(ObjectKeys(sockets), (name) =>
398 ArrayPrototypeIncludes(sockets[name], s),
427 const sets = [this.sockets];
434 const sockets = sets[sk];
436 if (sockets[name]) {
437 const index = ArrayPrototypeIndexOf(sockets[name], s);
439 ArrayPrototypeSplice(sockets[name], index, 1);
441 if (sockets[name].length === 0)
442 delete sockets[name];
460 if (this.sockets[prop] && this.sockets[prop].length) break;
502 const sets = [this.freeSockets, this.sockets];