Merge branch 'main' of http://git.jerl.zone/jerl/vybe
commit
b6cff1d7b2
|
@ -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>
|
||||
|
|
5
index.js
5
index.js
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue