{"id":25583865,"url":"https://github.com/sidkhaliddv/server-sent-events","last_synced_at":"2025-06-28T13:41:28.387Z","repository":{"id":278052820,"uuid":"921853074","full_name":"sidkhaliddv/server-sent-events","owner":"sidkhaliddv","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-17T18:38:02.000Z","size":722,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-02T10:24:41.934Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidkhaliddv.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-24T18:33:42.000Z","updated_at":"2025-02-17T18:38:05.000Z","dependencies_parsed_at":"2025-02-17T19:22:46.421Z","dependency_job_id":"4c063ffb-44b7-4b8d-99f2-fa7ccc08cfbe","html_url":"https://github.com/sidkhaliddv/server-sent-events","commit_stats":null,"previous_names":["sidkhaliddv/server-sent-events"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sidkhaliddv/server-sent-events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidkhaliddv%2Fserver-sent-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidkhaliddv%2Fserver-sent-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidkhaliddv%2Fserver-sent-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidkhaliddv%2Fserver-sent-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidkhaliddv","download_url":"https://codeload.github.com/sidkhaliddv/server-sent-events/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidkhaliddv%2Fserver-sent-events/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260520934,"owners_count":23021714,"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":"2025-02-21T06:19:12.380Z","updated_at":"2025-06-18T08:38:02.636Z","avatar_url":"https://github.com/sidkhaliddv.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Server sent events work in a way that server can send the data to the client without client sending the requests, but client first needs to establish a connection.\n\nCriteria:\nIts simple, server needs to set a header\n\nContent-Type: text/event-stream\n\nto send events server will do write() instead of send()/json(), each write will be an event to the client\n\nFor client:\nClients can establish the connection via\nnew EventSource(url)\n\nand thats it.\n\nP.S they are lighter than websockets.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidkhaliddv%2Fserver-sent-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidkhaliddv%2Fserver-sent-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidkhaliddv%2Fserver-sent-events/lists"}