I consider redesigning an open source Progressive Web App with simple custom back end to Sollid app. This application uses Push Notification, Notifications API on the client side. And Push API on the server. I would like to ask for your thoughts on how to integrate Push API with a solid server, for example NSS. I thought it might require writing a bot, which would subscribe to Solid WebSockets API and take responsibility for sending notifications using Push API.
It might require a way for applications to store PushSubscriptions on solid server.
Once I start experimenting I’ll share more updates in this thread, at the same time I hope to hear from community if you have already tried to implement Push Notifications.
I agree, something like this will likely be necessary. (I figured to try tackling WebSub (previously PubSubHubbub) first, but this might be a decent approach too.)
Just a little question about WebSocket API :
Using this code, I can be notified when a file change but it doesn’t work with the folder. Is there a way to be notified when something happen at the folder level ? Thanks
hi @aorumbayev, THxs for your reply.
I thought that there was a file , an “index.ttl” or something like that, that was describing the folder.
for example when I look the source of https://spoggy.solid.community/public/test/, I got the following file. A websocket connected to that could notify the webpage when there are changes … I’m wrong ? But that file doesn’t seems to be accessible ???
@Smag0
Im not familiar with the node-solid-server codebase, so I can’t say for sure if that could work. Probably there is a specific reason why right now it only works for files
But one thing you could try is to check the .acl for this folder, and set write access to public, maybe Websocket cannot establish a connection due to you having limitations to access that folder.