localtunnel
localtunnel copied to clipboard
Having trouble decode client Socket data
Hi guys, i'm using localtunnel server to forward socket message. I can receive message data in buffer by listening for "data" event (I add a log at lib/Client.js > handleUpgrade function and then listen for conn.on("data") ). I can decode the first message but cannot decode every next messages. I tried with toString UTF-8, hex, ascii but still cannot read that message.
Can you please help me out in how it set yours up?
I have made a rust based implementation, feel free to give it a try.