dtroupe18 / Socket-Starscream-Demo

Demo on how to use Sockets with Starscream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket-Starscream-Demo

Originally based off of this tutorial (outdated). This project uses Starscream to handle socket connections.

Steps to run demo:

  1. Install node if you don't have it.
  2. Open a terminal window and cd into the project directory then run npm install websocket.
  3. cd nodeapp.
  4. node chat-server.js.
  5. See something along the lines of "Fri Feb 21 2020 11:49:06 GMT-0500 (Eastern Standard Time) Server is listening on port 1337".
  6. In the nodeapp folder open frontend.html this will launch the server in your browser. Enter a name and send a message.
  7. Open a terminal window and cd into the project directory then run pod install.
  8. Open SocketDemo.xcworkspace with Xcode.
  9. Run the app.
  10. Enter your name.
  11. Send a message using the app or the webpage previously opened, both should update in real time and display the conversation.

Server Screenshot

Alt Text

App Screenshot

Alt Text

About

Demo on how to use Sockets with Starscream


Languages

Language:JavaScript 46.9%Language:Swift 46.6%Language:HTML 5.6%Language:Ruby 1.0%