Commit 1ea5e257 authored by Dennis Willers's avatar Dennis Willers 🏀

Irgendwas beim Socket Einrichten gemacht

parent 2a9f572e
Pipeline #325 passed with stages
in 3 minutes and 4 seconds
const Express = require("express")(); const Express = require("express")();
const Http = require("http").Server(Express); const Http = require("http").Server(Express);
const Socketio = require("socket.io")(Http); const Socketio = require("socket.io")(Http, {
cors: {
origin: "ws://tabu-server.willers.digital",
methods: ["GET", "POST"],
allowedHeaders: ["Access-Control-Allow-Origin"],
credentials: true
}
});
Http.listen(80, () => { Http.listen(80, () => {
console.log("Listening at :3000..."); console.log("Listening at :3000...");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment