Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
4486058a
Commit
4486058a
authored
Jan 26, 2022
by
lixiaozhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加actionMapping,将websocket的服务写法模仿springmvc。提交一个示例
parent
a7892caa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
+32
-0
core/src/main/java/com/wecloud/dispatch/WsTestAction.java
+32
-0
No files found.
core/src/main/java/com/wecloud/dispatch/WsTestAction.java
View file @
4486058a
...
...
@@ -14,6 +14,38 @@ import java.util.Map;
import
java.util.Set
;
/**
* 这是一个示例,前端websocket的写法:
{
"reqId":"123123123",
"action":"/sendtest/gogo",
"hello":"我的测试",
"push": {
"title": "标题",
"subTitle": "子标题"
},
"pList": [
{
"title": "p1标题",
"subTitle": "p1子标题"
},{
"title": "p2标题",
"subTitle": "p2子标题"
}],
"pSet": [
{
"title": "p3标题",
"subTitle": "p3子标题"
},{
"title": "p4标题",
"subTitle": "p4子标题"
}],
"pMap": {
"testKey1": "testValue1",
"testKey2": "testValue2"
}
}
* @author lixiaozhong
*/
@Component
...
...
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