{"id":13550297,"url":"https://github.com/rikulo/socket.io-dart","last_synced_at":"2025-04-10T05:09:50.232Z","repository":{"id":47193342,"uuid":"82881474","full_name":"rikulo/socket.io-dart","owner":"rikulo","description":"socket.io-dart: Dartlang port of socket.io https://github.com/socketio/socket.io","archived":false,"fork":false,"pushed_at":"2023-02-05T22:35:00.000Z","size":163,"stargazers_count":120,"open_issues_count":13,"forks_count":45,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-03T01:12:26.232Z","etag":null,"topics":["dart","dartlang","namespace","quire","server","socket","socket-io","websocket"],"latest_commit_sha":null,"homepage":"https://quire.io","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rikulo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-23T03:46:16.000Z","updated_at":"2024-10-14T11:12:22.000Z","dependencies_parsed_at":"2023-02-19T02:30:53.895Z","dependency_job_id":null,"html_url":"https://github.com/rikulo/socket.io-dart","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fsocket.io-dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fsocket.io-dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fsocket.io-dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rikulo%2Fsocket.io-dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rikulo","download_url":"https://codeload.github.com/rikulo/socket.io-dart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248161273,"owners_count":21057555,"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":["dart","dartlang","namespace","quire","server","socket","socket-io","websocket"],"created_at":"2024-08-01T12:01:31.262Z","updated_at":"2025-04-10T05:09:50.212Z","avatar_url":"https://github.com/rikulo.png","language":"Dart","readme":"# socket.io-dart\n\nPort of awesome JavaScript Node.js library - [Socket.io v2.0.1](https://github.com/socketio/socket.io) - in Dart\n\n## Usage\n\n```dart\nimport 'package:socket_io/socket_io.dart';\n\nmain() {\n    var io = new Server();\n    var nsp = io.of('/some');\n    nsp.on('connection', (client) {\n      print('connection /some');\n      client.on('msg', (data) {\n        print('data from /some =\u003e $data');\n        client.emit('fromServer', \"ok 2\");\n      });\n    });\n      io.on('connection', (client) {\n        print('connection default namespace');\n        client.on('msg', (data) {\n          print('data from default =\u003e $data');\n          client.emit('fromServer', \"ok\");\n        });\n      });\n      io.listen(3000);\n}\n```\n\n```js\n// JS client\nvar socket = io('http://localhost:3000');\nsocket.on('connect', function(){console.log('connect')});\nsocket.on('event', function(data){console.log(data)});\nsocket.on('disconnect', function(){console.log('disconnect')});\nsocket.on('fromServer', function(e){console.log(e)});\n```\n\n```dart\n// Dart client\nimport 'package:socket_io_client/socket_io_client.dart' as IO;\n\nIO.Socket socket = IO.io('http://localhost:3000');\nsocket.on('connect', (_) {\n  print('connect');\n  socket.emit('msg', 'test');\n});\nsocket.on('event', (data) =\u003e print(data));\nsocket.on('disconnect', (_) =\u003e print('disconnect'));\nsocket.on('fromServer', (_) =\u003e print(_));\n```\n\n## Multiplexing support\n\nSame as Socket.IO, this project allows you to create several Namespaces, which will act as separate communication channels but will share the same underlying connection.\n\n## Room support\n\nWithin each Namespace, you can define arbitrary channels, called Rooms, that sockets can join and leave. You can then broadcast to any given room, reaching every socket that has joined it.\n\n## Transports support\n Refers to [engine.io](https://github.com/socketio/engine.io)\n\n- `polling`: XHR / JSONP polling transport.\n- `websocket`: WebSocket transport.\n\n## Adapters support\n\n*  Default socket.io in-memory adapter class. Refers to [socket.io-adapter](https://github.com/socketio/socket.io-adapter)\n\n## Notes to Contributors\n\n### Fork socket.io-dart\n\nIf you'd like to contribute back to the core, you can [fork this repository](https://help.github.com/articles/fork-a-repo) and send us a pull request, when it is ready.\n\nIf you are new to Git or GitHub, please read [this guide](https://help.github.com/) first.\n\n## Who Uses\n\n* [Quire](https://quire.io) - a simple, collaborative, multi-level task management tool.\n* [KEIKAI](https://keikai.io/) - a web spreadsheet for Big Data.\n\n## Socket.io Dart Client\n\n* [socket.io-client-dart](https://github.com/rikulo/socket.io-client-dart)\n\n## Contributors\n* Thanks [@felangel](https://github.com/felangel) for https://github.com/rikulo/socket.io-dart/issues/7\n* Thanks [@ThinkDigitalSoftware](https://github.com/ThinkDigitalSoftware) for https://github.com/rikulo/socket.io-dart/pull/15\n* Thanks [@guilhermecaldas](https://github.com/guilhermecaldas) for https://github.com/rikulo/socket.io-dart/pull/16\n* Thanks [@jodinathan](https://github.com/jodinathan) for https://github.com/rikulo/socket.io-dart/pull/17\n* Thanks [@jodinathan](https://github.com/jodinathan) for https://github.com/rikulo/socket.io-dart/pull/18\n* Thanks [@nicobritos](https://github.com/nicobritos) for https://github.com/rikulo/socket.io-dart/pull/46\n* Thanks [@nicobritos](https://github.com/nicobritos) for https://github.com/rikulo/socket.io-dart/pull/47","funding_links":[],"categories":["Dart"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikulo%2Fsocket.io-dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frikulo%2Fsocket.io-dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frikulo%2Fsocket.io-dart/lists"}