Gabbler is dead, long live Reactive Flows! Gabbler is no longer relevant, because spray has been replaced by Akka HTTP. Also, instead of long polling, Server-Sent Events (or Websockets) should be used. Both issues are addressed by Reactive Flows.
Gabbler is a simple push-enabled chat application showcasing a modern and reactive web application: an interactive client based on AngularJS and a scalable and resilient RESTful server written in Scala, Akka and spray.
For details check out the Gabbler, a reactive chat app – part 1 blog post and its follow-ups.
Huge thanks to Mathias Doenitz from the spray team for his help and contributions!
Clone this repository, cd
into it and start sbt. Then simply execute run
to start the Gabbler server:
gabbler$ sbt
[info] ...
gabbler> run
[info] Running de.heikoseeberger.gabbler.GabblerServerApp
Open a browser and point it to localhost:8080/. Use the same value for username and password, e.g. "John" and "John".
Enter a message in the text area on the left, click the "Gabble away" button and watch the message appear on the right.
Open a second browser window which needs to be a different application if you want to use a separate login (e.g. first Safari, second Chrome), enter another message and watch it appear in both browser windows.
To stop the Gabbler server, send a GET request to localhost:8080/api/shutdown.
Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.
This code is open source software licensed under the Apache 2.0 License.