mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
33 lines
449 B
JavaScript
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() {
|
|
// ...
|
|
};
|