{"id":15714123,"url":"https://github.com/forsaken1/socket-io.cr","last_synced_at":"2025-10-11T14:38:12.180Z","repository":{"id":146110660,"uuid":"54041269","full_name":"forsaken1/socket-io.cr","owner":"forsaken1","description":"Small analog socket.io","archived":false,"fork":false,"pushed_at":"2016-10-17T14:18:04.000Z","size":6,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-12T23:46:46.682Z","etag":null,"topics":["library","websockets"],"latest_commit_sha":null,"homepage":"","language":"Crystal","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/forsaken1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-03-16T14:57:38.000Z","updated_at":"2018-03-26T23:54:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"91f5ad6d-389f-4dd7-b5a3-f4a6a6fc5dbd","html_url":"https://github.com/forsaken1/socket-io.cr","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/forsaken1%2Fsocket-io.cr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Fsocket-io.cr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Fsocket-io.cr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forsaken1%2Fsocket-io.cr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forsaken1","download_url":"https://codeload.github.com/forsaken1/socket-io.cr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843167,"owners_count":21972868,"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":["library","websockets"],"created_at":"2024-10-03T21:34:49.370Z","updated_at":"2025-10-11T14:38:07.144Z","avatar_url":"https://github.com/forsaken1.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SocketIO\n\nSmall analog socket.io\n\n## Installation\n\n\nAdd this to your application's `shard.yml`:\n\n```yaml\ndependencies:\n  socket_io:\n    github: forsaken1/socket-io.cr\n```\n\n\n## Usage\n\nWith [Kemal](http://kemalcr.com):\n\n```crystal\nrequire \"kemal\"\nrequire \"socket_io\"\n\nsocket_io = SocketIO::Base.new\n\nhandler = socket_io.on_connection do |session| # session : SocketIO::WebSocket\n  session.on(\"client_event\") do |message|\n    puts message\n    session.emit(\"some_event\", { message: \"Hello!\" })\n  end\nend\n\nsocket_io.emit :tick, { array: [1, 2, 3, 4], hash: { field: \"Field\" } } # send to all client\n\nKemal.config.add_handler handler\nKemal.run\n```\n\n\n## On client\n\nUse JS analog [SocketIO.js](https://gist.github.com/forsaken1/6223ed86422c0996634b)\n\n\n## Contributing\n\n1. Fork it ( https://github.com/forsaken1/socket-io.cr/fork )\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create a new Pull Request\n\n## Contributors\n\n- [forsaken1](https://github.com/forsaken1) Krylov Alexey - creator, maintainer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsaken1%2Fsocket-io.cr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforsaken1%2Fsocket-io.cr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforsaken1%2Fsocket-io.cr/lists"}