You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
654 B

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>MQTTnet Server test</title>
  6. </head>
  7. <body>
  8. <script src="node_modules/systemjs/dist/system.js"></script>
  9. <script>
  10. System.config({
  11. packages: {
  12. '': {
  13. defaultExtension: 'js'
  14. }
  15. },
  16. map: {
  17. mqtt: 'node_modules/mqtt/dist/mqtt.min'
  18. }
  19. });
  20. System.import('app/app');
  21. </script>
  22. <div>
  23. <p id="state"></p>
  24. <input id="topic" placeholder="topic" />
  25. <input id="msg" placeholder="msg" />
  26. <button id="publish">send</button>
  27. </div>
  28. <div>
  29. <ul id="msgs" ></ul>
  30. </div>
  31. </body>
  32. </html>