mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
34 lines
531 B
JavaScript
34 lines
531 B
JavaScript
/**
|
|
* Parent class.
|
|
* @class
|
|
*/
|
|
function Connection() {}
|
|
|
|
/**
|
|
* Open the connection.
|
|
* @virtual
|
|
*/
|
|
Connection.prototype.open = function() {};
|
|
|
|
/**
|
|
* Close the connection.
|
|
*/
|
|
Connection.prototype.close = function() {};
|
|
|
|
/**
|
|
* Child class.
|
|
* @class
|
|
* @extends Connection
|
|
*/
|
|
function Socket() {}
|
|
|
|
/** @inheritdoc */
|
|
Socket.prototype.open = function() {};
|
|
|
|
/**
|
|
* Close the socket.
|
|
* @param {string} message - A message explaining why the socket is being closed.
|
|
* @inheritdoc
|
|
*/
|
|
Socket.prototype.close = function() {};
|