Skip to content

Commit

Permalink
Correct WebsocketTool events distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
car031 committed Dec 26, 2024
1 parent 109d4ea commit 791b3d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public class WebsocketTool {
public void showMessage(Session session, String message, String level) {
WebsocketMessage command = new WebsocketMessage(session.getSid(), "command");
command.setCommand("message");
command.setTenantId(session.getTenantId());
command.setUserId(session.getUserId());
command.setUsername(session.getUsername());
command.setPayload(message);
Expand All @@ -56,6 +57,7 @@ public void showMessage(Session session, String message, String level) {
public void openUrl(Session session, String url, String target) {
WebsocketMessage command = new WebsocketMessage(session.getSid(), "command");
command.setCommand("openurl");
command.setTenantId(session.getTenantId());
command.setUserId(session.getUserId());
command.setUsername(session.getUsername());
command.setPayload(url);
Expand Down

0 comments on commit 791b3d3

Please sign in to comment.