thecore_tcp_debug 3.0.1 → 3.0.2

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: c26466ceff75475d4cd1dabd0ac92d59cced444666871c2078d307c0d97d9c71
4
- data.tar.gz: f9a99ca911c2ab999a4f7a7e8b0d17dafd7eb21013e05986be0603af30678e3d
3
+ metadata.gz: 20763c91e5c2b47857fabaaa540c277f252f41faae4a453712e7e71e9590beff
4
+ data.tar.gz: c307dfe971ff3ba4d9ba7ae13b21c7c8923e55f641589764f036917ec6813a7c
5
5
  SHA512:
6
- metadata.gz: 36f0cd125fccb64f3ac05272af574893b7e81785ad678ea6e24eb9cb0637fff6f4a28b08365c1620b6278f8e8bce88249da7950c91b02c5a4cad029c137db9be
7
- data.tar.gz: e43bff307ec595fc3beac4c4d01e82e515f1a0d5c52c8db3a970093321727a9b6339ae4d763c49756c7e2ec8a2cafe82f597171d2ce4ec260364635b585082bd
6
+ metadata.gz: f2d3cf2c7d193dc44671e62cedbf7186ae5544603c0db542f63b30604e879a2e55893df4b6b1336e43c17de898d715bf067e909e553a8e315792d9c89f312c9f
7
+ data.tar.gz: fed30a43f8146958678c8a8ffd4ca0054780e854eaeebd8c996da60578e1e72def61e9a495d377677626aa52bbcafb89d76a80515ffffb3ce6c9bcfb6a8fdffd
@@ -1,12 +1,28 @@
1
1
 
2
2
  $(document).on('turbo:load', function (event) {
3
+ // Event
3
4
  currentURL = new URL(event.originalEvent.detail.url);
4
5
  if(currentURL.pathname.endsWith("tcp_debug")){
5
6
  hideLoader();
7
+
8
+ // Action cable Websocket
9
+ App.cable.subscriptions.create("ActivityLogChannel", {
10
+ connected() {
11
+ console.log("Connected to the channel:", this);
12
+ this.send({ message: 'Client is live' });
13
+ },
14
+ disconnected() {
15
+ console.log("Disconnected");
16
+ },
17
+ received(data) {
18
+ console.log("Received some data:", data);
19
+ }
20
+ });
21
+
22
+ $("#ping-host").keypress(function(event){if(event.keyCode == 13){$('#ping').click();}});
23
+ $("#telnet-host").keypress(function(event){if(event.keyCode == 13){$('#telnet').click();}});
24
+ $("#telnet-port").keypress(function(event){if(event.keyCode == 13){$('#telnet').click();}});
6
25
  }
7
- $("#ping-host").keypress(function(event){if(event.keyCode == 13){$('#ping').click();}});
8
- $("#telnet-host").keypress(function(event){if(event.keyCode == 13){$('#telnet').click();}});
9
- $("#telnet-port").keypress(function(event){if(event.keyCode == 13){$('#telnet').click();}});
10
26
  });
11
27
 
12
28
  function hideLoader() {
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.1
4
+ version: 3.0.2
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-02-22 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ping