Web socket will receive message and accept or deny the websocket. writer will check every few seconds for changes on the database or lightning node and if changes happened send them back.
// TODO on the pull request.
if web socket has not been closed in 15 minutes the server will close the connection.
separate into a reader and a writer thread so I can listen for closing connections.
Link to nut: https://github.com/cashubtc/nuts/blob/main/17.md
Web socket will receive message and accept or deny the websocket. writer will check every few seconds for changes on the database or lightning node and if changes happened send them back.
// TODO on the pull request.