/kiss_socketio

playing with socket.io

Primary LanguageTypeScript

Notes on kiss_socketio

Presentation

kiss_socketio is a small sandbox project to discover the javascript library socket.io.

It contains the client side and the server side.

See also Socket.io on github and npmjs.

Topology

Servers

This repo contains one WebSocket server in the directory srv. It serves html, css and js. It acts as a REST Api. And it provides the WebSocket service.

Clients

This repo contains three clients that consumes the WebSocket service:

  • web : it uses the WebSocket service from the browser
  • client_js : it uses the WebSocket service from a nodejs-application based on the package socket.io-client
  • client_py : it uses the WebSocket service from a python-application based on the package python-socketio

Npm packages

ncp versu cpx

ncp is much more populare but doesn't have the feature watch. cpx has the feature watch, has dependencies and one minor vulnerability.

Python packages

socket.io clients

The candidates to make a socket.io client with Python:

With the two firsts, I couldn't disable the certification verification of my self certificate. The third one lets me disable it with verify=True.