Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
teknikattan-scoring-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tddd96-grupp1
teknikattan-scoring-system
Commits
e5869e31
Commit
e5869e31
authored
3 years ago
by
robban64
Browse files
Options
Downloads
Patches
Plain Diff
fix: socket proxy
parent
a987e4ae
No related branches found
No related tags found
No related merge requests found
Pipeline
#47142
passed with warnings
3 years ago
Stage: setup
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/sockets.ts
+1
-1
1 addition, 1 deletion
client/src/sockets.ts
server/app/core/sockets.py
+1
-1
1 addition, 1 deletion
server/app/core/sockets.py
with
2 additions
and
2 deletions
client/src/sockets.ts
+
1
−
1
View file @
e5869e31
...
...
@@ -30,7 +30,7 @@ export const socketConnect = (role: 'Judge' | 'Operator' | 'Team' | 'Audience')
// The token is the JWT returned from the login/code API call.
const
token
=
localStorage
[
`
${
role
}
Token`
]
socket
=
io
(
'
localhost:5000
'
,
{
socket
=
io
(
'
/
'
,
{
transportOptions
:
{
polling
:
{
extraHeaders
:
{
...
...
This diff is collapsed.
Click to expand it.
server/app/core/sockets.py
+
1
−
1
View file @
e5869e31
...
...
@@ -19,7 +19,7 @@ stream_handler = logging.StreamHandler()
stream_handler
.
setFormatter
(
formatter
)
logger
.
addHandler
(
stream_handler
)
sio
=
SocketIO
(
cors_allowed_origins
=
"
http://localhost:3000
"
)
sio
=
SocketIO
(
cors_allowed_origins
=
"
*
"
)
active_competitions
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment