swc/crates/jsdoc/tests/fixtures/eventorder.js
2021-11-10 16:39:01 +09:00

33 lines
449 B
JavaScript

'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() {
// ...
};