localtunnel / server

server for localtunnel.me
https://localtunnel.me
MIT License
3.05k stars 989 forks source link

Having trouble decode client Socket data #188

Open nguyenhopquang opened 2 years ago

nguyenhopquang commented 2 years 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