This is a very simple example on how to use Starscream.
First make sure you have the gem dependencies of websocket server.
gem install em-websocket
gem install faker
Next simply run:
ruby ws-server.rb
If you run the app on your device, expose the local server to the internet like starting ngrok.
ngrok http 8080
After that, edit the endpoint.
Before running the Xcode project, you need to adjust the local package path to your starscream project.