Skip to content
This repository was archived by the owner on Jul 18, 2023. It is now read-only.
This repository was archived by the owner on Jul 18, 2023. It is now read-only.

Investigate Pusher for server to browser messaging #19

@tsimbalar

Description

@tsimbalar

We should have no problem using regular HTTP calls from the browser to the server (for instance to submit a score, or notify we are leaving) , but notifying from the server to the browser is more tricky, as not so many hosting providers allow to keep a connection open forever (i.e. cannot use "regular" websockets) (see issues http://groups.google.com/group/play-framework/browse_thread/thread/41a4f317b15abbc4?pli=1 or http://multikoop.blogspot.de/2012/01/playing-with-websockets.html ).

It looks like Pusher may be an option .

We need to :

  • investigate how Pusher works and see if it would fulfill our requirements (limitation and pricing depending on our usage ...)
  • see if it can be used with Heroku as advertised : (https://addons.heroku.com/pusher)
  • find some server-side API that would be compatible with our dev stack. A few Java-based are listed on the official Pusher website... I also found a gist in scala which we could use for inspiration. After all, those are just wrappers around the HTTP calls to the Pusher RESTful API ...

This is related to issue #5 support for webSocket-less browsers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions