2
0
mirror of https://github.com/ad1217/PrinterStatus synced 2024-11-21 06:53:48 -05:00

server: Move source to src folder

This commit is contained in:
Adam Goldsmith 2021-11-03 18:55:39 -04:00
parent 7f2c4f48b2
commit 5d19c77dce
3 changed files with 4 additions and 4 deletions

View File

@ -19,6 +19,6 @@
"ws": "^8.2.3"
},
"scripts": {
"start": "ts-node ./server.ts"
"start": "ts-node ./src/server.ts"
}
}

View File

@ -1,8 +1,8 @@
import * as WebSocket from 'ws';
import fetch from 'node-fetch';
import {ExtendedMessage} from '../types/messages';
import * as octoprint from '../types/octoprint';
import {ExtendedMessage} from '../../types/messages';
import * as octoprint from '../../types/octoprint';
const PING_TIME = 10000;

View File

@ -6,7 +6,7 @@ import * as yaml from 'js-yaml';
import * as expressWs from 'express-ws';
import * as WebSocket from 'ws';
import { ExtendedMessage } from '../types/messages';
import { ExtendedMessage } from '../../types/messages';
import OctoPrintConnection from './OctoPrintConnection';
const PORT = process.env.PORT || 1234;