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
- Host: GitHub
- URL: https://github.com/recordevolution/cb-connect
- Owner: RecordEvolution
- Created: 2017-02-10T12:18:40.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-24T10:03:34.000Z (about 9 years ago)
- Last Synced: 2025-01-11T01:10:45.454Z (about 1 year ago)
- Language: HTML
- Size: 2.7 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.