An open API service indexing awesome lists of open source software.

https://github.com/recordevolution/cb-connect

Polymer Element, which connects to crossbar.io router
https://github.com/recordevolution/cb-connect

Last synced: about 1 month ago
JSON representation

Polymer Element, which connects to crossbar.io router

Awesome Lists containing this project

README

          

##<cb-connect>

`cb-connect` is an element which connects to a [crossbar.io](http://crossbar.io) router.
Simply add the `cb-connect` element to the local DOM of your custom element. As soon as the connection is established, `cb-connect` will fire an event, which contains the session details.

Example:

```html




Polymer({

properties: {

},

getSessionObject: function(e) {
console.log('connected, the session object is:', e.detail);
}

});

```
Instead of listening to the event, you could also add an observer for the session object.