AsamK / signal-cli

signal-cli provides an unofficial commandline, JSON-RPC and dbus interface for the Signal messenger.
GNU General Public License v3.0
3.22k stars 306 forks source link

JsonRpc two sockets? #1524

Closed Tsjippy closed 6 months ago

Tsjippy commented 6 months ago

hi I want to implement jsonRPC socket in php.

I want to do it with 2 independend scripts: 1) daemon: listens to any incoming signal messages and responds to them 2) the website sends out signal messages

How do I do this? The main problem I am facing is with 2: when I send a request I want to listen for the response. But the daemon has already read that response so its no longer available.

Could there be two sockets? One for incoming messages and one for responses for requests? Soryy if this is a dump question