socket-io-admin-ui/examples/single-server/index.js

14 lines
262 B
JavaScript

import { Server } from "socket.io";
import { instrument } from "../../dist/index.js";
const io = new Server(3000, {
cors: {
origin: ["https://admin.socket.io", "http://localhost:8080"],
credentials: true,
},
});
instrument(io, {
auth: false,
});