Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

[Websocket] Support roadmap #102

Open
crazyyi opened this issue May 13, 2017 · 8 comments
Open

[Websocket] Support roadmap #102

crazyyi opened this issue May 13, 2017 · 8 comments

Comments

@crazyyi
Copy link

crazyyi commented May 13, 2017

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
Copy link
Member

nikmd23 commented May 13, 2017

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
Copy link
Author

crazyyi commented May 13, 2017

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
Copy link
Member

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?

@avanderhoorn avanderhoorn changed the title Does Glimpse support websocket packets capturing? [Websocket] Support roadmap May 13, 2017
@crazyyi
Copy link
Author

crazyyi commented May 14, 2017

@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
Copy link
Member

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
Copy link
Author

crazyyi commented May 15, 2017

@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
Copy link
Member

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

@crazyyi
Copy link
Author

crazyyi commented May 17, 2017

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.

@mike-kaufman mike-kaufman added this to the Backlog milestone May 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants