aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/torui/coflsky/network')
-rw-r--r--src/main/java/de/torui/coflsky/network/WSClient.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/torui/coflsky/network/WSClient.java b/src/main/java/de/torui/coflsky/network/WSClient.java
index 353fab0..ad9c436 100644
--- a/src/main/java/de/torui/coflsky/network/WSClient.java
+++ b/src/main/java/de/torui/coflsky/network/WSClient.java
@@ -122,15 +122,15 @@ public class WSClient extends WebSocketAdapter {
}
public void SendCommand(Command cmd) {
- Send(cmd);
+ SendCommand(new RawCommand(cmd.getType().ToJson(),gson.toJson(cmd.getData())));
}
-
public void SendCommand(RawCommand cmd) {
Send(cmd);
}
public void Send(Object obj) {
String json = gson.toJson(obj);
+ System.out.println("###Sending message of json value " + json);
this.socket.sendText(json);
}