localtunnel / server

server for localtunnel.me
https://localtunnel.me
MIT License
2.98k stars 964 forks source link

Having trouble decode client Socket data #188

Open nguyenhopquang opened 1 year ago

nguyenhopquang commented 1 year ago

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