Glimpse / Home

Project Glimpse: Node Edition - Spend less time debugging and more time developing.
http://node.getglimpse.com
Other
252 stars 9 forks source link

[Websocket] Support roadmap #102

Open crazyyi opened 7 years ago

crazyyi commented 7 years ago

I tried to view request/response sent via websockets using Glimpse. But I can't see any. My test environment doesn't even go forward as it used to be when I init Glimpse in my code. It will stop when it tries to send the first websocket message. Does Glimpse support capturing websocket events? Glimpse is a great project. It has a friendly UI and is easy to use. But it is not very useful for me if it can't view websocket events.

nikmd23 commented 7 years ago

Hello @crazyyi,

Glimpse does not currently provide diagnostic insights into web sockets, but we'd love to work with you more to understand how and why you're using websockets, and the problems you experience while doing so. Mind filling in some details covering how you're using websockets, what modules/libraries/frameworks you leverage and what you'd find helpful from Glimpse?

You also mention that your "test environment doesn't go forward". Call you tell us a bit more about what you mean by that? It sounds like you might have found a bug, but we need more info.

Thanks for writing in!

crazyyi commented 7 years ago

Sure. I am just running a test environment using the ws and socket.io library. But my main goal is to use Glimpse to analyze the data on the wire when I run my browser game in websocket. Otherwise I have to rely on console logs on the browser which doesn't give me a very good experience.

avanderhoorn commented 7 years ago

So given a magic wand, you are wanting to see the connection that has been established and the messages going back and forward? What in these messages are you looking to find information on?

crazyyi commented 7 years ago

@avanderhoorn yes to see the established connection and debugging and profiling. It seems to me that Glimpse is able to put server messages and client messages together. This will be very helpful to debug websocket-based apps or games.

avanderhoorn commented 7 years ago

Technically that should be doable. Whats your socket setup like? i.e. is it like a chat client where you have multiple channels going and routing messages between groups/user or is it more for "real time" updates/notifications to the use.

crazyyi commented 7 years ago

@avanderhoorn It's real time MMO server-client browser game. Sending update a few times to each client at every second. But support for chat client is also good to have because many websocket-based apps require this setup.

avanderhoorn commented 7 years ago

Makes sense. What are the payloads like in this case, are they just plain old json objects or are they more complex?

crazyyi commented 7 years ago

message format can be json object or binary stream. The payloads depend on the number of connected clients. If there are 100 connected clients and each of them receives 10 messages per second then the server will be sending 1000+ messages out per second. The client also sends messages to the server very often. Every second there may be new connection established or existing client disconnected.