http#Server JavaScript Examples
The following examples show how to use
http#Server.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.js From createvid with MIT License | 6 votes |
initApp = async () => {
try {
const app = await createApp();
const server = new Server(app);
await SocketService.install(server);
await channel.install();
await TaskStatusService.install();
// await WorkersService.install();
const { port } = config.server;
server.listen(port, () => logger.info(`? Server ready at http://localhost:${port}/`));
return server;
} catch (err) {
logger.error(err);
process.exit(1);
}
}
Example #2
Source File: app.js From IBM-db2-blockchain-insurance-application with Apache License 2.0 | 5 votes |
httpServer = new Server(app)
Example #3
Source File: index.js From crate with MIT License | 5 votes |
server = new Server(app)