sockets-test-lib

A server socket library (testing phase)

Usage no npm install needed!

<script type="module">
  import socketsTestLib from 'https://cdn.skypack.dev/sockets-test-lib';
</script>

README

A server socket library for client messages communication

Uses Express.js, Socket.io

Add this line on top of your script:

const sockets = require('sockets-test-lib');

Start a server with:

on your server.js

const portNumber = 3000;

sockets.start(portNumber);

Then run:

node server.js