linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
564 stars 143 forks source link

Upgrade WebSocket live update to use WebSocketSubscription2021 where available #549

Open timbl opened 2 years ago

timbl commented 2 years ago

WebSocketSubscription2021 is a new more secure version of the web sockets protocol .

Also do the loner discovery which is being developed. when that is available.

timea-solid commented 2 years ago

Looking at the new spec, webSockets need authentication which means - we need in rdflib authentication - or (rather how I'd do) pass to the UpdateManager the authSession (this might be enough). Remark: the place that needs change is: https://github.com/linkeddata/rdflib.js/blob/main/src/update-manager.ts#L616