To set this project up, make sure to use ruby 2.5.1
and then run bundle install
To execute the server, first create a test database from the setup.sql
file, then execute DATABASE_URL=your_developmen_url bundle exec puma config.ru -p9292
To execute the tests, first create a test database from the setup.sql
file, then execute DATABASE_URL=your_test_database_url ruby test.rb
You can test this app at https://www.websocket.org/echo.html
This server is available for use at the URL: wss://pacific-everglades-79377.herokuapp.com/
Make sure to send a valid JSON request as pointed out in this image: