{"id":16373222,"url":"https://github.com/bbqsrc/bbqws","last_synced_at":"2026-03-20T11:30:16.222Z","repository":{"id":5040710,"uuid":"6200745","full_name":"bbqsrc/bbqws","owner":"bbqsrc","description":"A minimalist websocket wrapper.","archived":false,"fork":false,"pushed_at":"2012-10-14T08:24:57.000Z","size":124,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T21:12:02.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ragunathjawahar/android-saripaar","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bbqsrc.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}},"created_at":"2012-10-13T07:11:44.000Z","updated_at":"2019-08-13T15:10:25.000Z","dependencies_parsed_at":"2022-09-06T11:51:23.611Z","dependency_job_id":null,"html_url":"https://github.com/bbqsrc/bbqws","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/bbqsrc%2Fbbqws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fbbqws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fbbqws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqsrc%2Fbbqws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbqsrc","download_url":"https://codeload.github.com/bbqsrc/bbqws/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239933349,"owners_count":19720766,"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-10-11T03:13:44.416Z","updated_at":"2026-03-20T11:30:16.177Z","avatar_url":"https://github.com/bbqsrc.png","language":"Python","readme":"# bbqws\n\nA minimalist websocket wrapper.\n\n## Client usage\n\n### CoffeeScript\n\n```coffeescript\nws = new bbqws(\"localhost:8888\")\n\nws.on \"connect\", -\u003e\n\tconsole.log \"Connected!\"\n\nws.on \"example\", (data) -\u003e\n\t# Do something with response\n\nws.connect()\n\nws.emit \"example\", data: \"all kinds of data\"\nws.emit \"example\", [1, 2, 3]\nws.emit \"example\", true\nws.emit \"example\"\n```\n\n### JavaScript\n\n```javascript\nvar ws = new bbqws(\"localhost:8888\");\n\nws.on(\"connect\", function() {\n\tconsole.log(\"Connected!\");\n});\n\nws.on(\"example\", function(data) {\n\t// Do something with response\n});\n\nws.connect();\n\nws.emit(\"example\", {data: \"all kinds of data\"});\nws.emit(\"example\", [1, 2, 3]);\nws.emit(\"example\", true);\nws.emit(\"example\");\n```\n\n## Server usage\n\nThis is a very basic implementation, implemented using Tornado's WebSocket handler.\n\n```python\nimport tornado.web\nimport tornado.ioloop\nimport tornado.options\n\nfrom bbqws import BbqwsSocket\n\nclass ExampleHandler(BbqwsSocket):\n    def on_example(self, message):\n\t    self.emit(\"response\", {\"msg\": \"hurray!\"})\n\napplication = tornado.web.Application([\n    (r\"/\", ExampleHandler),\n])\n\ntornado.options.parse_command_line()\napplication.listen(8888)\ntornado.ioloop.IOLoop.instance().start()\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqsrc%2Fbbqws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbqsrc%2Fbbqws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqsrc%2Fbbqws/lists"}