Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
ws-rst
Overview
Overview
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
qlintonger xeno
ws-rst
Commits
ed063e7c
Commit
ed063e7c
authored
Feb 14, 2025
by
qlintonger xeno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接GetCompanyUserList成功+1
parent
e1abb6bd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
+15
-1
src/deport.rs
+4
-0
src/handles/handle_agora_call.rs
+10
-0
src/handles/mod.rs
+1
-1
No files found.
src/deport.rs
View file @
ed063e7c
use
crate
::
events
::
Event
;
use
crate
::
handles
::
online_users_update
::{
online_messages
,
send_online_users_resp
};
use
tokio
::
sync
::
mpsc
::
UnboundedSender
;
use
crate
::
handles
::
handle_agora_call
::
handle_agora_call
;
pub
async
fn
handle_ws_msg
(
msg_type
:
String
,
...
...
@@ -29,6 +30,9 @@ pub async fn handle_ws_msg(
}
}
}
"Call"
|
"CancelCall"
=>
{
handle_agora_call
(
&
msg_type
,
&
from_id
,
&
event_sender
,
&
connection_time
)
.await
;
}
_
=>
{}
}
}
src/handles/handle_agora_call.rs
View file @
ed063e7c
use
crate
::
events
::
Event
;
use
tokio
::
sync
::
mpsc
::
UnboundedSender
;
pub
async
fn
handle_agora_call
(
msg_type
:
&
String
,
from_id
:
&
String
,
event_sender
:
&
UnboundedSender
<
Event
>
,
connection_time
:
&
u128
,
)
{
}
src/handles/mod.rs
View file @
ed063e7c
...
...
@@ -2,4 +2,4 @@ pub mod handshake;
pub
mod
heartbeat
;
pub
mod
online_users_update
;
pub
mod
redis
;
mod
handle_agora_call
;
pub
mod
handle_agora_call
;
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