Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
vidai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
vidai
Commits
b6a0a398
Commit
b6a0a398
authored
Oct 09, 2025
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SocketServer message_handler call to pass client_sock for worker registration
parent
e342fff0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
backend.py
vidai/backend.py
+1
-1
comm.py
vidai/comm.py
+1
-1
No files found.
vidai/backend.py
View file @
b6a0a398
...
@@ -50,7 +50,7 @@ def get_result(msg_id: str) -> dict:
...
@@ -50,7 +50,7 @@ def get_result(msg_id: str) -> dict:
return
{
'error'
:
str
(
e
)}
return
{
'error'
:
str
(
e
)}
def
handle_web_message
(
message
:
Message
)
->
Message
:
def
handle_web_message
(
message
:
Message
,
client_sock
=
None
)
->
Message
:
"""Handle messages from web interface."""
"""Handle messages from web interface."""
if
message
.
msg_type
==
'analyze_request'
:
if
message
.
msg_type
==
'analyze_request'
:
from
.config
import
get_analysis_backend
from
.config
import
get_analysis_backend
...
...
vidai/comm.py
View file @
b6a0a398
...
@@ -162,7 +162,7 @@ class SocketServer:
...
@@ -162,7 +162,7 @@ class SocketServer:
data
=
msg_data
[
'data'
]
data
=
msg_data
[
'data'
]
)
)
print
(
f
"DEBUG: SocketServer parsed message: {message}"
)
print
(
f
"DEBUG: SocketServer parsed message: {message}"
)
response
=
self
.
message_handler
(
message
)
response
=
self
.
message_handler
(
message
,
client_sock
)
if
response
:
if
response
:
resp_data
=
json
.
dumps
({
resp_data
=
json
.
dumps
({
'msg_type'
:
response
.
msg_type
,
'msg_type'
:
response
.
msg_type
,
...
...
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