All Projects → fdimuccio → play2-sockjs

fdimuccio / play2-sockjs

Licence: Apache-2.0 license
A SockJS server implementation for Play Framework.

Programming Languages

scala
5932 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to play2-sockjs

sockjs-cyclone
SockJS server support for the Cyclone web server
Stars: ✭ 26 (-56.67%)
Mutual labels:  sockjs, sockjs-server
spring-websocket-angular6
Example for using Spring Websocket and Angular with Stomp Messaging
Stars: ✭ 18 (-70%)
Mutual labels:  websockets, sockjs
ng2-STOMP-Over-WebSocket
STOMP Over WebSocket service for angular2
Stars: ✭ 35 (-41.67%)
Mutual labels:  websockets, sockjs
EasyUI
ESP8266 User Interface Library.
Stars: ✭ 63 (+5%)
Mutual labels:  websockets
URLSessionWebSocketTask
This is a sample project for new URLSessionWebSocketTask API introduced in iOS 13.
Stars: ✭ 53 (-11.67%)
Mutual labels:  websockets
general-angular
Realtime Angular Admin/CRUD Front End App
Stars: ✭ 24 (-60%)
Mutual labels:  websockets
socketio-shared-webworker
Socket.io client inside a WebWorker thread
Stars: ✭ 85 (+41.67%)
Mutual labels:  websockets
java-play-react-seed
🌀 Java Play 2.7.x + React seed project with full-fledged build process
Stars: ✭ 43 (-28.33%)
Mutual labels:  play-framework
MAVCesium
An experimental web based map display for MAVProxy based on Cesium
Stars: ✭ 28 (-53.33%)
Mutual labels:  websockets
unity-webgl-multiplayer
Unity WebGL basic multiplayer demo using WebSockets
Stars: ✭ 43 (-28.33%)
Mutual labels:  websockets
stream video server
demonstrates how to create video streaming server with the help of aiohttp and opencv
Stars: ✭ 15 (-75%)
Mutual labels:  websockets
rabbitmq-web-stomp-examples
www.rabbitmq.com/
Stars: ✭ 90 (+50%)
Mutual labels:  websockets
fhq-server
This is an open source platform for competitions of computer security.
Stars: ✭ 33 (-45%)
Mutual labels:  websockets
league-connect
🔌 Promise-based NodeJS interface to the League of Legends Client APIs
Stars: ✭ 92 (+53.33%)
Mutual labels:  websockets
webfuse
websocket filesystem based on libfuse
Stars: ✭ 23 (-61.67%)
Mutual labels:  websockets
exam
Electronic exam software for higher education
Stars: ✭ 13 (-78.33%)
Mutual labels:  play-framework
gateway.js
The gateway to Discord.
Stars: ✭ 23 (-61.67%)
Mutual labels:  websockets
arel
Lightweight browser hot reload for Python ASGI web apps
Stars: ✭ 69 (+15%)
Mutual labels:  websockets
CoreRemoting
RPC library with classic .NET Remoting flavour
Stars: ✭ 23 (-61.67%)
Mutual labels:  websockets
play-angular-typescript.g8
A giter8 template for a Play Angular 4 Typescript application
Stars: ✭ 91 (+51.67%)
Mutual labels:  play-framework

Build Status Maven

play2-sockjs

A SockJS server implementation for Play Framework.

play2-sockjs api aims to be as similar as possible to the WebSocket one provided by Play Framework:

// Play WebSocket api:
def websocket = WebSocket.using[String](handler)

// play2-sockjs api:
def sockjs = SockJS.using[String](handler)

// same request handler
val handler = { (request: RequestHeader) =>
  // Log events to the console
  val in = Iteratee.foreach[String](println).map { _ =>
    println("Disconnected")
  }
  // Send a single 'Hello!' message and close
  val out = Enumerator("Hello!") >>> Enumerator.eof
  (in, out)
}

It provides api for Scala and Java. All transports offered by SockJS have been implemented according to the 0.3.3 protocol specifications. Currently passes all transport tests from the specs except for test_haproxy, it should impact only users that uses WebSocket Hixie-76 protocol behind HAProxy.

Current versions:
    Play 2.1.x : 0.1.6
    Play 2.2.x : 0.2.6
    Play 2.3.x : 0.3.1
    Play 2.4.x : 0.4.0
    Play 2.5.x : 0.5.3
    Play 2.6.x : 0.6.0
    Play 2.7.x : 0.7.1
    Play 2.8.x : 0.8.2

What is SockJS?

SockJS is a browser JavaScript library that provides a WebSocket-like object. SockJS gives you a coherent, cross-browser, Javascript API which creates a low latency, full duplex, cross-domain communication channel between the browser and the web server.

Under the hood SockJS tries to use native WebSockets first. If that fails it can use a variety of browser-specific transport protocols and presents them through WebSocket-like abstractions.

SockJS is intended to work for all modern browsers and in environments which don't support WebSocket protocol, for example behind restrictive corporate proxies.

Usage

For installation see Installing

For usage see API reference

Want to learn more? See the wiki

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].