localtunnel icon indicating copy to clipboard operation
localtunnel copied to clipboard

Having trouble decode client Socket data

Open nguyenhopquang opened this issue 2 years ago • 1 comments

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? Screenshot_2

Screenshot_8

nguyenhopquang avatar Nov 10 '22 03:11 nguyenhopquang

I have made a rust based implementation, feel free to give it a try.

kaichaosun avatar Nov 23 '22 08:11 kaichaosun