thecore_tcp_debug 3.0.2 → 3.0.4
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: b9740bf418284b7fb2ac3af38852e441d11386d3827a4478a54f620ba30427cd
|
4
|
+
data.tar.gz: 00fe0a835179e301e651e27974e99a9c463cd2b9ef283f538077326b6c409f23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84f1b6fe14db21c19a78527194bd25cf6794f24016d2aaa3d51a017bfebf857569b2f585a589294bdcd992b07353d420b6b93a6ca80284935b9fe6280fd9ac18
|
7
|
+
data.tar.gz: 3ca8770e8b1ebb7ad79096346b2879f762b5b6d5a643534ee892b68186b24d3fc5092644b34a1bb4bcc9f6483d5c145876444656b4539cff3754643fc5053183
|
@@ -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
|
12
|
+
this.send({ message: 'TCP Debug Client is connected', topic: "tcp_debug", namespace: "subscriptions" });
|
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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_tcp_debug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ping
|