User:Ftwm/JTSetc: Difference between revisions

From Rabid Reaction Force
Content added Content deleted
(Format HTML with (1st) <pre> and (2nd) <nowiki> tags)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
https://gitlab.com/Markworthy/nodejs-express_baublegum0v1/-/raw/master/public/src/privtest.js
https://gitlab.com/Markworthy/nodejs-express_baublegum0v1/-/raw/master/public/src/privtest.js


====HTM====
====HTML====


<pre><nowiki>
<pre><nowiki>
Line 14: Line 14:


&lt;title&gt;Pusher Test&lt;/title&gt;
&lt;title&gt;Pusher Test&lt;/title&gt;
&lt;style&gt; code { color: blue; } &lt;/style&gt;
&lt;script src="https://js.pusher.com/8.2.0/pusher.min.js"&gt;&lt;/script&gt;
&lt;script src="https://js.pusher.com/8.2.0/pusher.min.js"&gt;&lt;/script&gt;
&lt;script src="./privtest.js"&gt;&lt;/script&gt;
&lt;script src="https://gl.githack.com/Markworthy/nodejs-express_baublegum0v1/-/raw/master/public/src/privtest.js"&gt;&lt;/script&gt;

&lt;!--
&lt;!--
&lt;script src="./privtest.js"&gt;&lt;/script&gt;
&lt;script src="./privtest.js" type="module"&gt;&lt;/script&gt;
&lt;script src="./privtest.js" type="module"&gt;&lt;/script&gt;
&lt;script src="https://raw.githack.com/Markworthy-37260/Next-JS_Pusher-com_Channels-server/main/public/JSBI_etc.js" type="module"&gt;&lt;/script&gt;
&lt;script src="https://raw.githack.com/Markworthy-37260/Next-JS_Pusher-com_Channels-server/main/public/JSBI_etc.js" type="module"&gt;&lt;/script&gt;
--&gt;
--&gt;
&lt;style&gt; code { color: blue; } &lt;/style&gt;

&lt;/head&gt;&lt;body&gt;
&lt;/head&gt;&lt;body&gt;

Latest revision as of 15:59, 27 June 2024

Pusher.com Channels client[edit]

 https://gitlab.com/Markworthy/nodejs-express_baublegum0v1/-/raw/master/public/src/privtest.js

HTML[edit]


<!DOCTYPE html><html><head>
<!--
  https://nodejs-express-baublegum0v1a.onrender.com/baubles_
  https://www.textcompare.org/
-->

  <title>Pusher Test</title>
  <style> code { color: blue; } </style>
  <script src="https://js.pusher.com/8.2.0/pusher.min.js"></script>
  <script src="https://gl.githack.com/Markworthy/nodejs-express_baublegum0v1/-/raw/master/public/src/privtest.js"></script>

<!--
  <script src="./privtest.js"></script>
  <script src="./privtest.js" type="module"></script>
  <script src="https://raw.githack.com/Markworthy-37260/Next-JS_Pusher-com_Channels-server/main/public/JSBI_etc.js" type="module"></script>
-->
</head><body>
  
  <h1>Pusher.com 'Channels' product test</h1>
  
  <p> <label for="ak_">Access Key</label>
      <input type="text" id="ak" name="ak_"
             onchange="tryNewAppKey(this.value)" > </p>
  <p> <label for="ck_">Option(s)</label>
      <input type="textarea" id="ck" name="ck_"
             onchange="tryNewCfgStr(this.value)" > </p>
  <!-- OUT: requires node (ATM)
  <p> <label for="sk_">Secret Key</label>
      <input type="text" id="sk" name="sk_"> </p>
  --->
  <p>
Test by triggering an event on channel '<code>main-channel</code>'
with event name '<code>dumb-event</code>' - for example by:-<br />
      (i) creating an account<br />
      (ii) downloading the pusher CLI<br />
      (iii) logging in with your API key:<br />
        "<code>pusher login</code>"<br />
      (iv) triggering a dumb-event on the main-channel:<br />
        "<code>pusher channels apps trigger --app-id 1736956 --channel
main-channel --event dumb-event --message hello-world</code>"<br />
        <br />
        [[waiting...]]
  </p>
  
</body></html>