Having trouble decode client Socket data #188

Open
opened 2022-11-07 18:26:26 +00:00 by nguyenhopquang · 0 comments
nguyenhopquang commented 2022-11-07 18:26:26 +00:00 (Migrated from github.com)

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

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](https://user-images.githubusercontent.com/16518296/200386172-01fc5a83-0cb4-43a0-ad49-877a4d6c2266.png) ![Screenshot_8](https://user-images.githubusercontent.com/16518296/200386495-82adb3c3-df35-4a14-84f5-d5ad5fd3e9d3.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: hoelee/server#188