Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Socketio

148 views

Published on

Socket.io Javascript Library

Published in: Software
  • Be the first to comment

  • Be the first to like this

Socketio

  1. 1. Muhammed YALÇIN December 4, 2016
  2. 2.  What is soket.IO?  Socket.IO INSTALLATION  SIMPLE CHAT APPLICATION  REFERENCES
  3. 3.  Socket.IO is a Javascript library that runs server-side on Node.js and in the browser.  Socket.IO runs asynchronously.  Socket.IO is a WebSocket API created by Guillermo Rauch, CTO of LearnBoost and lead scientist of LearnBoost Labs. Socket.IO will use feature detection to decide if the connection will be established with WebSocket, AJAX long polling, Flash, etc., making creating realtime apps that work everywhere a snap. Socket.IO also provides an API for Node.js which looks very much like the client side API.  Socket.IO is composed of two part:  A server that integrates with (or mounts on) the Node.JS HTTP Server: socket.io  A client library that loads on the browser side: socket.io-client
  4. 4.  Download and install node.js from https://nodejs.org/en/  Open command line and go to your project folder.  “npm install --save express” copy-paste and enter.  “npm install --save socket.io” copy-paste and enter.  Now, you can include socket.io library to your project files.
  5. 5.  Create a “package.json” file.
  6. 6.  Create a “server.js” file.
  7. 7.  Create a “index.html” file.  Command Line>> “node server.js”
  8. 8.  http://socket.io/get-started/chat/  https://en.wikipedia.org/wiki/Soc  https://www.quora.com/What-is-Socket-io ket.IO

×