'use strict'; var _ = require('lodash'); /** * Socket class. * @class */ function Socket() { // ... } /** * Send a packet. * @param {Packet} packet - The packet to send. * @return {boolean} `true` on success, `false` on failure. */ Socket.prototype.send = function(packet) { // ... }; /** * Virtual doclet for `Packet` class. * @class Packet */ /** * Close the socket. */ Socket.prototype.close = function() { // ... };