Skip to content

rsrealtime/herokuWebsocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scalable chat application with Play and WebSockets

This is a version of the Play websockets chat sample that uses redis pub/sub to allow for a single chatroom that works across multiple nodes.

Running

The application requires a Redis connection. This is configured in applicaiton.conf:

# Redis configuration
redis.uri=${REDISCLOUD_URL}

Set the URL into an environment variable or delete this line to run Redis locally on the default port.

Once setting up Redis you can run with

$ play run

Running on Heroku

$ heroku create --buildpack https://github.com/jamesward/heroku-buildpack-scala.git
$ heroku labs:enable websockets
$ heroku addons:add rediscloud
$ git push heroku master
$ heroku open

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published