Open elribonazo opened 2 years ago
Would you be able provide a minimal repo which demos this error? It's a bit hard to know just from this snippet.
I think you'll need to periodically send packets down the connection regardless of the setKeepalive flag since I'm not sure if that's actually respected in web browsers.
Hello!
I'm really surprised with this marvelous peace of code, must say... I'm working on something weird that does not have any sense haha and i'm getting a weird issue.
The backend (hyperswarm) sends a hello message to the customer (hyperswarm-web) after they connect, I do this with the hyperswarm package as follows:
The client side implementation is using the hyperswarm-web as I said and I only listen for connections and do the join. I initialize swarm only by passing the "bootstrap" attribute, nothing else.
Is this because I'm not encoding the message before sending with SwarmEncode? I have no idea and help would be much appreciated!