mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
api: Implement Websocket transport for live data
This commit is contained in:
parent
6a368cf66f
commit
de89acb617
5 changed files with 299 additions and 113 deletions
|
@ -2,6 +2,7 @@
|
|||
require('nocamel');
|
||||
const Logger = require('logplease');
|
||||
const express = require('express');
|
||||
const expressWs = require('express-ws');
|
||||
const globals = require('./globals');
|
||||
const config = require('./config');
|
||||
const path = require('path');
|
||||
|
@ -12,6 +13,9 @@ const runtime = require('./runtime');
|
|||
|
||||
const logger = Logger.create('index');
|
||||
const app = express();
|
||||
expressWs(app);
|
||||
|
||||
|
||||
|
||||
(async () => {
|
||||
logger.info('Setting loglevel to', config.log_level);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue