june moretz 2023-05-09 01:45:47 -04:00
commit b6cff1d7b2
2 changed files with 4 additions and 3 deletions

View File

@ -74,6 +74,6 @@
</div>
<script src="/openpgp.min.js"></script>
<script src="/chat.js"></script>
<script src="https://cdn.socket.io/4.5.4/socket.io.min.js"></script>
<script src="/socket.io.min.v4.6.1.js"></script>
</body>
</html>

View File

@ -1,8 +1,9 @@
const express = require("express");
const app = express();
const http = require("http");
const server = http.createServer(app);
const { Server } = require("socket.io");
const app = express();
const server = http.createServer(app);
const io = new Server(server, {
cors: {
origin: ["http://localhost:8000", "http://192.168.1.199:8000"],