GithubHelp home page GithubHelp logo

isabella232 / play-socket.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from playframework/play-socket.io

0.0 0.0 0.0 375 KB

Play socket.io support

License: Other

Scala 48.91% Java 14.76% HTML 0.49% JavaScript 35.84%

play-socket.io's Introduction

Play socket.io support

Build Status Latest Release

This is the Play backend socket.io support.

Features

  • Supports all socket.io features, including polling and WebSocket transports, multiple namespaces, acks, JSON and binary messages.
  • Uses Akka streams to handle namespaces.
  • Supports end to end back pressure, pushing back on the TCP connection for clients that send messages faster than the server can handle them.
  • In-built multi node support via Akka clustering, no need to use sticky load balancing.
  • Straight forward codec DSL for translating socket.io callback messages to high level streamed message types.

Documentation

See the Java and Scala documentation.

Sample apps

Sample apps can be found here.

License and support

This software is copyright 2017 Lightbend, and is licensed under the Apache 2 license. The Lightbend subscription does not cover support for this software.

As this software is still in beta status, no guarantees are made with regards to binary or source compatibility between versions.

Developing

Testing

Integration tests are written in JavaScript using mocha and chai, so that the JavaScript socket.io client can be used, to ensure compatibility with the reference implementation. They can be run by running test in sbt.

There are multiple different backends that the tests are run against, including one implemented in Java, one in Scala, and one in a multi node setup. To debug them, you can start these tests by running runJavaServer, runScalaServer and runMultiNodeServer from sbt, then visit http://localhost:9000. This will bring you to an index page will includes and will run the mocha test suite against the backend you started. From there, you can set breakpoints in the JavaScript, and inspect the communication using your browsers developer tools.

The test runner runs the tests against each of these backends, using phantomjs as the browser, and it extracts the test results out and prints them nicely to the console as the tests are running.

Support

The Play-backed socket.io support library is Community Driven.

play-socket.io's People

Contributors

scala-steward avatar jroper avatar marcospereira avatar octonato avatar mkurz avatar wsargent avatar ignasi35 avatar dwijnand avatar raboof avatar jkholodnov avatar joymufeng avatar mergify[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.