Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

abilia/wsdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#WebSocket test for myAbilia

This project contains a small example app that submits WebSockets messages every 2 seconds. It was useful for developing WS on backend and could probably be usable on frontend as well since it mirrors the myAbilia solution without all other overhead.

###Usage

###Technical The js client (app.js) connect a STOMP client to '/ws-stomp'.

That client can later on subscribe to changes on different users on url '/data/{ownerId}'.

The client will receive events that looks like this

{
  "type": "sortable",
  "owner": 1,
  "revision": 35
}
  • type - The kind of data that changed. Currently one of "calendar", "sortable", "file".
  • owner - The owner of the data. Usable if the logged in user listens to multiple data source.
  • revision - The new revision for the data. Usable to separate changes originating from the logged in user and others.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published