Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Tabu-Middleware
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Tabu-Middleware
Commits
1ea5e257
Commit
1ea5e257
authored
Dec 31, 2020
by
Dennis Willers
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Irgendwas beim Socket Einrichten gemacht
parent
2a9f572e
Pipeline
#325
passed with stages
in 3 minutes and 4 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
socket.js
socket.js
+8
-1
No files found.
socket.js
View file @
1ea5e257
const
Express
=
require
(
"
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
,
()
=>
{
console
.
log
(
"
Listening at :3000...
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment