Giter Site home page Giter Site logo

thrillstone / solace-chrome-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matbor/mqtt2chrome

0.0 1.0 0.0 278 KB

An example of using the MQTT javascript library, websockets & chrome browser extensions. The extension will connect to a MQTT broker and then subscribe to a topic, when a message is received it will then display the notification using chrome's built-in notifications function.

JavaScript 100.00%

solace-chrome-extension's Introduction

Solace Chrome Extension Example for uOttaHack

This repo is forked from https://github.com/matbor/mqtt2chrome

##Overview

This extension connects to a Solace Event Broker using the MQTT protocol over websockets and displays any received messages using Chrome's built-in notifications function.

Requires chrome "notifications" permission.

notification box

##Setup

  1. Clone this repo
  2. Edit the background.js file and change the hostname and password
  3. In Chrome, goto Tools -> Extenstions.
  4. Tick the 'Developer mode' box, then click 'Load unpacked extension...'
  5. Select the directory where you have cloned the extension.
  6. If you entered your credentials correctly, a notification will show up saying you're connected and subscribed to testexample topic
  7. If you publish a message to the broker to the testexample topic, you will get a notification in chrome showing the message You can use this link to publish: https://codepen.io/solacecloud/pen/bxdrbL. Fill out the connection details under the "show advanced settings".

solace-chrome-extension's People

Contributors

claws avatar kevinkaishao avatar matbor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.