{"id":20720177,"url":"https://github.com/scalajs-io/engine-io","last_synced_at":"2026-04-13T02:02:25.275Z","repository":{"id":77422523,"uuid":"105235088","full_name":"scalajs-io/engine-io","owner":"scalajs-io","description":"Engine.IO is the implementation of transport-based cross-browser/cross-device bi-directional communication layer for Socket.IO.","archived":false,"fork":false,"pushed_at":"2019-06-17T23:08:13.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-11T07:52:34.221Z","etag":null,"topics":["engine-io","npm","scalajs","scalajs-io","socket-io"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/scalajs-io.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":"2017-09-29T05:54:17.000Z","updated_at":"2019-06-17T23:08:15.000Z","dependencies_parsed_at":"2023-10-26T20:33:33.889Z","dependency_job_id":null,"html_url":"https://github.com/scalajs-io/engine-io","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/scalajs-io/engine-io","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fengine-io","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fengine-io/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fengine-io/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fengine-io/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scalajs-io","download_url":"https://codeload.github.com/scalajs-io/engine-io/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scalajs-io%2Fengine-io/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"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-08-16T02:00:11.002Z","response_time":91,"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":["engine-io","npm","scalajs","scalajs-io","socket-io"],"created_at":"2024-11-17T03:19:33.836Z","updated_at":"2026-04-13T02:02:20.234Z","avatar_url":"https://github.com/scalajs-io.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"engine.io API for Scala.js\n================================\n[engine.io](https://www.npmjs.com/package/engine.io) - Engine.IO is the implementation of transport-based \ncross-browser/cross-device bi-directional communication layer for Socket.IO.\n\n### Build Requirements\n\n* [SBT v1.2.x](http://www.scala-sbt.org/download.html)\n\n\n### Build/publish the SDK locally\n\n```bash\n $ sbt clean publish-local\n```\n\n### Running the tests\n\nBefore running the tests the first time, you must ensure the npm packages are installed:\n\n```bash\n$ npm install\n```\n\nThen you can run the tests:\n\n```bash\n$ sbt test\n```\n\n### Examples\n\n##### Listening on a port\n\n```scala\nimport io.scalajs.npm.engineio._\nimport io.scalajs.nodejs.buffer.Buffer\nimport scala.scalajs.js\n\nval server = EngineIO.listen(80)\nserver.on(\"connection\", { socket: Socket =\u003e\n    socket.send(\"utf 8 string\")\n    socket.send(Buffer.from(js.Array(0, 1, 2, 3, 4, 5))); // binary data\n})\n```\n\n##### Intercepting requests for a http.Server\n\n```scala\nimport io.scalajs.npm.engineio._\nimport io.scalajs.nodejs.buffer.Buffer\nimport io.scalajs.nodejs.http.Http \n\nval http = Http.createServer()\nhttp.listen(3000)\n\nval server = EngineIO.attach(http)\nserver.on(\"connection\", { socket: Socket =\u003e\n    socket.on(\"message\", (data: Buffer) =\u003e {})\n    socket.on(\"close\", () =\u003e {})\n})\n```\n\n### Artifacts and Resolvers\n\nTo add the `engine.io` binding to your project, add the following to your build.sbt:  \n\n```sbt\nlibraryDependencies += \"io.scalajs.npm\" %%% \"engine-io\" % \"0.4.1\"\n```\n\nOptionally, you may add the Sonatype Repository resolver:\n\n```sbt   \nresolvers += Resolver.sonatypeRepo(\"releases\") \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalajs-io%2Fengine-io","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscalajs-io%2Fengine-io","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscalajs-io%2Fengine-io/lists"}