mirror of
https://github.com/ad1217/PrinterStatus
synced 2024-11-10 18:45:08 -05:00
Handle errors in the webcam proxy
This commit is contained in:
parent
5384f36c6d
commit
df4c518841
@ -19,6 +19,10 @@ const config: {
|
||||
} = yaml.safeLoad(fs.readFileSync('config.yaml', 'utf8'));
|
||||
|
||||
const proxy = httpProxy.createProxyServer({});
|
||||
proxy.on('error', function(e) {
|
||||
console.error('Proxy failed:');
|
||||
console.error(e);
|
||||
});
|
||||
let printerStatuses: PrinterStatus[] = [];
|
||||
|
||||
function broadcast(data: WebSocket.Data) {
|
||||
|
Loading…
Reference in New Issue
Block a user