Jump to content

socket.io / node.js simple chat sample


Ron
 Share

Recommended Posts

Hi,

 

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.

websocket-unigui.zip

  • Upvote 4
Link to comment
Share on other sites

  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...