{"id":19083737,"url":"https://github.com/deepstreamio/deepstream.io-connection-emoticon","last_synced_at":"2025-10-24T13:50:21.318Z","repository":{"id":76864865,"uuid":"93344798","full_name":"deepstreamIO/deepstream.io-connection-emoticon","owner":"deepstreamIO","description":"An example endpoint using a protocol based on emoticons","archived":false,"fork":false,"pushed_at":"2019-04-07T15:31:09.000Z","size":10,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-22T06:26:41.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepstreamIO.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":"2017-06-04T22:19:00.000Z","updated_at":"2017-06-04T22:42:17.000Z","dependencies_parsed_at":"2024-02-16T01:46:17.724Z","dependency_job_id":null,"html_url":"https://github.com/deepstreamIO/deepstream.io-connection-emoticon","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepstreamIO/deepstream.io-connection-emoticon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepstreamIO%2Fdeepstream.io-connection-emoticon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepstreamIO%2Fdeepstream.io-connection-emoticon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepstreamIO%2Fdeepstream.io-connection-emoticon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepstreamIO%2Fdeepstream.io-connection-emoticon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepstreamIO","download_url":"https://codeload.github.com/deepstreamIO/deepstream.io-connection-emoticon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepstreamIO%2Fdeepstream.io-connection-emoticon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017144,"owners_count":26085984,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T02:48:53.371Z","updated_at":"2025-10-13T22:42:16.838Z","avatar_url":"https://github.com/deepstreamIO.png","language":"JavaScript","readme":"# deepstream.io-emoticon-endpoint\nAn example endpoint using a protocol based on emoticons\n\nThis repo is used a playful experimental ground as an example for what a different connection endpoint can do.\n\nCurrently is can only be used against deepstream 2.3.5 (not yet released at this time) and only supports events pub/sub for simplicity sake.\n\nThe concept is to be able to write a very basic protocol purely using emotions for actions.\n\nThe client code to subscribe to an login, subscribe and unsubscribe is:\n\n```\nconst WebSocket = require('ws');\nconst ws = new WebSocket('ws://localhost:6020/path')\n\nws.on('open', function open() {\n  // Authenticate\n  ws.send('👋')\n  // Subscribe with :heart:\n  ws.send('❤️ weather/berlin')\n  // Emit with :tada:\n  ws.send('🎉 weather/berlin sunny')\n  // Unsubscribe with :broken_heart:\n  ws.send('💔 weather/berlin')\n});\n\nws.on('message', function incoming(data) {\n  console.log(data)\n})\n```\n\nCouple of technical details:\n- Still uses websockets under the hood, but that can be easily changed to UDP, TCP, Engine.io.. or anything else\n- I use the js-emoji library which is nice because it translates colon and native emoticons to the same base. However it doesn't seem to support basic text characters like :P\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepstreamio%2Fdeepstream.io-connection-emoticon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepstreamio%2Fdeepstream.io-connection-emoticon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepstreamio%2Fdeepstream.io-connection-emoticon/lists"}