{"id":15593397,"url":"https://github.com/mr-dxdy/action_channels","last_synced_at":"2026-05-09T16:01:52.021Z","repository":{"id":59150238,"uuid":"120915084","full_name":"mr-dxdy/action_channels","owner":"mr-dxdy","description":null,"archived":false,"fork":false,"pushed_at":"2018-04-26T09:16:16.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T14:13:51.164Z","etag":null,"topics":["nio4r","ruby","websockets"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/mr-dxdy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-09T14:25:46.000Z","updated_at":"2018-04-26T09:16:17.000Z","dependencies_parsed_at":"2022-09-13T10:50:17.015Z","dependency_job_id":null,"html_url":"https://github.com/mr-dxdy/action_channels","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/mr-dxdy%2Faction_channels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Faction_channels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Faction_channels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-dxdy%2Faction_channels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mr-dxdy","download_url":"https://codeload.github.com/mr-dxdy/action_channels/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247297207,"owners_count":20915793,"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":["nio4r","ruby","websockets"],"created_at":"2024-10-03T00:16:41.756Z","updated_at":"2026-05-09T16:01:46.965Z","avatar_url":"https://github.com/mr-dxdy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Action channels\n\n## Example\n\n``` ruby\nrequire 'action_channels'\n\nclass PingPongChannel \u003c ActionChannels::Channels::Base\n  def process_custom_message(message)\n    case message.type\n    when 'ping'\n      send_message message.author, ActionChannels::Message.new(channel: name, type: 'pong')\n    when 'pong'\n      send_message message.author, ActionChannels::Message.new(channel: name, type: 'ping')\n    else\n      on_unknown_type_message message\n    end\n  end\nend\n\nserver = ActionChannels::Server.new(\n  port: 3050,\n  channels: [PingPongChannel.new(name: 'ping-pong')]\n)\n\nserver.run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-dxdy%2Faction_channels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-dxdy%2Faction_channels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-dxdy%2Faction_channels/lists"}