roster-server 1.5.4 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/www/manual.js +5 -3
- package/package.json +1 -1
package/demo/www/manual.js
CHANGED
|
@@ -6,9 +6,11 @@ const roster = new Roster({
|
|
|
6
6
|
email: 'admin@example.com',
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
roster.registerSite('
|
|
10
|
-
res
|
|
11
|
-
|
|
9
|
+
roster.registerSite('example.com', (httpsServer) => {
|
|
10
|
+
return (req, res) => {
|
|
11
|
+
res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' });
|
|
12
|
+
res.end('"Loco de pensar, queriendo entrar en razón, y el corazón tiene razones que la propia razón nunca entenderá."');
|
|
13
|
+
};
|
|
12
14
|
});
|
|
13
15
|
|
|
14
16
|
roster.start();
|