{"id":13695689,"url":"https://github.com/fdimuccio/play2-sockjs","last_synced_at":"2025-12-18T09:04:18.780Z","repository":{"id":15505527,"uuid":"18239638","full_name":"fdimuccio/play2-sockjs","owner":"fdimuccio","description":"A SockJS server implementation for Play Framework.","archived":false,"fork":false,"pushed_at":"2023-11-17T16:01:54.000Z","size":5863,"stargazers_count":62,"open_issues_count":9,"forks_count":11,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-08-03T18:19:51.854Z","etag":null,"topics":["play-framework","play2-sockjs","scala","sockjs","sockjs-server","websockets"],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/fdimuccio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-03-29T11:07:12.000Z","updated_at":"2024-04-11T17:30:41.000Z","dependencies_parsed_at":"2023-11-13T23:26:27.596Z","dependency_job_id":"b9e807ae-13b9-4dd0-9391-bf67c8d1916a","html_url":"https://github.com/fdimuccio/play2-sockjs","commit_stats":null,"previous_names":[],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdimuccio%2Fplay2-sockjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdimuccio%2Fplay2-sockjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdimuccio%2Fplay2-sockjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fdimuccio%2Fplay2-sockjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fdimuccio","download_url":"https://codeload.github.com/fdimuccio/play2-sockjs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224364353,"owners_count":17299055,"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":["play-framework","play2-sockjs","scala","sockjs","sockjs-server","websockets"],"created_at":"2024-08-02T18:00:32.353Z","updated_at":"2025-12-18T09:04:13.736Z","avatar_url":"https://github.com/fdimuccio.png","language":"Scala","funding_links":[],"categories":["Libraries"],"sub_categories":["Others"],"readme":"[![Maven](https://img.shields.io/maven-central/v/com.github.fdimuccio/play2-sockjs_2.13.svg)](http://mvnrepository.com/artifact/com.github.fdimuccio/play2-sockjs_2.13)\n\n## play2-sockjs\n\nA SockJS server implementation for [Play Framework](http://www.playframework.com/).\n\nplay2-sockjs api aims to be as similar as possible to the WebSocket one provided by Play Framework:\n\n```scala\n// Play WebSocket api:\ndef websocket = WebSocket.using[String](handler)\n\n// play2-sockjs api:\ndef sockjs = SockJS.using[String](handler)\n\n// same request handler\nval handler = { (request: RequestHeader) =\u003e\n  // Log events to the console\n  val in = Iteratee.foreach[String](println).map { _ =\u003e\n    println(\"Disconnected\")\n  }\n  // Send a single 'Hello!' message and close\n  val out = Enumerator(\"Hello!\") \u003e\u003e\u003e Enumerator.eof\n  (in, out)\n}\n```\n\nIt provides api for Scala and Java. All transports offered by SockJS have been\nimplemented according to the [0.3.3 protocol specifications](http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.html).\nCurrently passes all transport tests from the specs except for test_haproxy, it should impact\nonly users that uses WebSocket Hixie-76 protocol behind HAProxy.\n\n    Current versions:\n        Play 2.1.x : 0.1.6\n        Play 2.2.x : 0.2.6\n        Play 2.3.x : 0.3.1\n        Play 2.4.x : 0.4.0\n        Play 2.5.x : 0.5.3\n        Play 2.6.x : 0.6.0\n        Play 2.7.x : 0.7.1\n        Play 2.8.x : 0.8.2\n        Play 2.9.x : 0.9.0\n        Play 3.0.x : 0.10.0\n\n## What is SockJS?\n\n[SockJS](http://sockjs.org) is a browser JavaScript library that provides a WebSocket-like\nobject. SockJS gives you a coherent, cross-browser, Javascript API\nwhich creates a low latency, full duplex, cross-domain communication\nchannel between the browser and the web server.\n\nUnder the hood SockJS tries to use native WebSockets first. If that\nfails it can use a variety of browser-specific transport protocols and\npresents them through WebSocket-like abstractions.\n\nSockJS is intended to work for all modern browsers and in environments\nwhich don't support WebSocket protocol, for example behind restrictive\ncorporate proxies.\n\n## Usage\n\nFor installation see [Installing](https://github.com/fdimuccio/play2-sockjs/wiki#installing)\n\nFor usage see [API reference](https://github.com/fdimuccio/play2-sockjs/wiki#installing)\n\nWant to learn more? [See the wiki](https://github.com/fdimuccio/play2-sockjs/wiki)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdimuccio%2Fplay2-sockjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdimuccio%2Fplay2-sockjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdimuccio%2Fplay2-sockjs/lists"}