Skip to content

Socket Server, Socket Client, WebSocket Client, and PubNub Pub/Sub Messaging in Node.js

License

Notifications You must be signed in to change notification settings

alilazim/nodejs-socket-websocket

Repository files navigation

nodejs-socket-websocket

Socket Server, Socket Client, WebSocket Client, and PubNub Pub/Sub Messaging in Node.js

Installing the Project

  • [Install Node.js and NPM]
  • Clone this repo to your machine
  • npm install

Node.js Running the Socket Server

  • node server.js

Node.js Running the Socket Client

  • node client.js

Node.js Running the Socket WebSocket

  • node websocket-server.js
  • Open client.html in your web browser

PubNub Pub/Sub Messaging Example

  • Sign up for a free PubNub Account and insert your free API keys into pubnub-client1.js and pubnub-client2.js
  • Open 2 command line windows
  • npm install if you haven't already
  • node pubnub-client1.js
  • In the other window...
  • node pubnub-client2.js

Sign up for a free PubNub Account

PubNub Signup

About

Socket Server, Socket Client, WebSocket Client, and PubNub Pub/Sub Messaging in Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published