UNPKG

898 BJavaScriptView Raw
1'use strict';
2
3var Log = require('./Log');
4
5/**
6 * @callback ServerListener
7 *
8 * @param {IncomingMessage} request
9 * @param {ServerResponse} response
10 */
11
12/**
13 *
14 * @interface
15 *
16 * @param {ServerListener} listener
17 * @param {IFSiteConfig} [config]
18 */
19function IConnectionServer(listener, config) {
20}
21
22/**
23 *
24 * @param {function} configurator
25 */
26IConnectionServer.prototype.configure = function(configurator) {
27 Log.error('IConnectionServer#constructor', 'Method must be implemented');
28};
29
30/**
31 *
32 * @param {function} [callback]
33 */
34IConnectionServer.prototype.listen = function(callback) {
35 Log.error('IConnectionServer#start', 'Method must be implemented');
36};
37
38/**
39 *
40 * @param {function} [callback]
41 */
42IConnectionServer.prototype.close = function(callback) {
43 Log.error('IConnectionServer#stop', 'Method must be implemented');
44};
45
46module.exports = IConnectionServer;