{"id":19772203,"url":"https://github.com/recordevolution/cb-connect","last_synced_at":"2026-03-03T16:07:13.847Z","repository":{"id":122417826,"uuid":"81562533","full_name":"RecordEvolution/cb-connect","owner":"RecordEvolution","description":"Polymer Element, which connects to crossbar.io router","archived":false,"fork":false,"pushed_at":"2017-03-24T10:03:34.000Z","size":2831,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T01:10:45.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RecordEvolution.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-10T12:18:40.000Z","updated_at":"2017-02-10T12:48:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a38372f-3344-4295-9184-b9959a436e51","html_url":"https://github.com/RecordEvolution/cb-connect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fcb-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fcb-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fcb-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RecordEvolution%2Fcb-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RecordEvolution","download_url":"https://codeload.github.com/RecordEvolution/cb-connect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241101664,"owners_count":19909943,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T05:05:44.185Z","updated_at":"2026-03-03T16:07:08.827Z","avatar_url":"https://github.com/RecordEvolution.png","language":"HTML","readme":"##\u0026lt;cb-connect\u0026gt;\n\n\n`cb-connect` is an element which connects to a [crossbar.io](http://crossbar.io) router.\nSimply 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.\n\nExample:\n\n\n```html\n\u003cdom-module id=\"custom-element\"\u003e\n  \u003ctemplate\u003e\n    \u003ccb-connect on-crossbar-connected=\"getSessionObject\"\u003e\u003c/cb-connect\u003e\n  \u003c/template\u003e\n\n  \u003cscript\u003e\n    Polymer({\n\n      properties: {\n\n      },\n\n      getSessionObject: function(e) {\n        console.log('connected, the session object is:', e.detail);\n      }\n\n    });\n  \u003c/script\u003e\n\u003c/dom-module\u003e\n```\nInstead of listening to the event, you could also add an observer for the session object.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fcb-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frecordevolution%2Fcb-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frecordevolution%2Fcb-connect/lists"}