Jump to content
uniGUI Discussion Forums

socket.io / node.js simple chat sample

Recommended Posts



Attached is a simple Unigui test project using websockets with

a socket.io server running on a node.js server, and a pure

JS websocket client running in a UniHTMLFrame.


This is based on the example at https://socket.io/get-started/chat/

and actually worked right out of the box, only had to add the

connection url http://localhost:3000/for the client and a few

CSS mods.


I will try to use this for my calendar project, for sync

between logged on clients.


I was able to use redis pub/sub for sync of external

processes like cash register, but not for calendar sync,

as that must be initiated from the browser client,

and redis clients cannot do http calls.


  • Upvote 3

Share this post

Link to post
Share on other sites