functionland / fula-archived

Client-server stack for Web3! Turn your Raspberry Pi to a BAS server in minutes and enjoy the freedom of decentralized Web with a superior user experience!
https://fx.land
MIT License
4 stars 0 forks source link

Close connection for subscriptions #82

Open mehdibalouchi opened 2 years ago

mehdibalouchi commented 2 years ago

The current implementation for subscription over graph protocol does not support closing the connection.

I can think of different reasons which may cause a connection to close:

In almost every scenario, the BOX app needs to know some identification about the client (maybe peerID).

On the other hand, at the protocol level, there should be the ability to send an unsubscribe command. (currently, the protocol schema does not cover different types of command)