luizpaulofranz / websocket-node-to-node-example

Simple Node to Node servers web-sockets communication;

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two Node Apps, as websocket client and server

Simple Node to Node servers web-sockets communication. Both, server and client are actually node projects, and both are http servers, but the folder server is a websocket server, and client a websocket client.

  • client has a simple CRUD example with express, mongoose and Mlab;
    • change your database connection data at: client.js
  • server is a REST API and only handles the Websockets through API;
    • SSL with a test certificate, to get https and wss (secure connections);
    • Websockt messages are controlled by Rest endpoints (I've been using postman)
    • Send files to specific client;

About

Simple Node to Node servers web-sockets communication;

License:MIT License


Languages

Language:JavaScript 74.5%Language:HTML 25.5%