thecore_tcp_debug 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fabe45ea593d7cb51b0aff123247938b255b843d7a1dc84f8b2a1f58e5a9443
|
4
|
+
data.tar.gz: 3ab88218dced86a55aa6400a5c131157683aa46604ed8e7c7bb92a2a2fbe43dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cec5a698dae989036ab0c4ab4d6e9913ac1ad3b8d0768b9674970b556a245d297d2b9789c662a7bfc29b1a3c3724fbc14e11b7cef19a5f6e717cf3e74480fa5
|
7
|
+
data.tar.gz: ddb531c676af5cbb97b87f2b93c0186789af26774b625a39c3aa1e0d3d4efdee87b1748646698b999159929a8a0ddef2568bc93723e591ced03ffc564a4c8985
|
@@ -9,13 +9,14 @@ $(document).on('turbo:load', function (event) {
|
|
9
9
|
App.cable.subscriptions.create("ActivityLogChannel", {
|
10
10
|
connected() {
|
11
11
|
console.log("Connected to the channel:", this);
|
12
|
-
this.send({ message: 'Client is live' });
|
12
|
+
this.send({ message: 'TCP Debug Client is live' });
|
13
13
|
},
|
14
14
|
disconnected() {
|
15
15
|
console.log("Disconnected");
|
16
16
|
},
|
17
17
|
received(data) {
|
18
|
-
|
18
|
+
if(data["topic"] == "tcp_debug")
|
19
|
+
console.log("TCP DEBUG", data);
|
19
20
|
}
|
20
21
|
});
|
21
22
|
|
@@ -33,6 +33,8 @@ Rails.application.configure do
|
|
33
33
|
else
|
34
34
|
message, status = { debug_status: I18n.t("invalid_test", host: params["host"]) }, 400
|
35
35
|
end
|
36
|
+
|
37
|
+
ActionCable.server.broadcast("messages", { topic: :tcp_debug, status: status, message: message})
|
36
38
|
render json: message.to_json, status: status
|
37
39
|
end
|
38
40
|
end
|