mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +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() {
|
||
|
// ...
|
||
|
};
|