mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-05 20:33:23 +08:00
优化说明
This commit is contained in:
@@ -19,10 +19,10 @@ public class MyCommand implements CommandProcessor {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(WebSocketCommand command) {
|
||||
command.getSession(); // WebSocketSession
|
||||
command.getAuthentication(); //获取权限信息
|
||||
command.getParameters(); //参数
|
||||
public void execute(CommandRequest request) {
|
||||
request.getSession(); // WebSocketSession
|
||||
request.getAuthentication(); //获取权限信息
|
||||
request.getParameters(); //参数
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user