Giter Site home page Giter Site logo

chrome-socket-analyzer's Introduction

###About When launching the default DevTools network tab you will see that Chrome does in fact have access to WebSocket traffic. The issue arises when the traffic gets stringified and displayed as unformatted plain text. In cases where your JSON is several levels deep, this data becomes quite unusable. As a result, SocketScoop was built to transform this data into visual components.

SocketScoop works by injecting content scripts into the DOM in order to monitor all incoming and outgoing traffic. By monkey patching the existing WebSocket constructor all send, receive, and connect events can be intercepted and marshaled to the front-end. This process is logically indistinguishable from the native WebSocket itself. As the data propagates up to the front-end, its contents are then parsed and transformed into markup, which ultimately gets injected into the extension panels DOM.


###TODO:

Priority

  • (H): High,
  • (M): Medium,
  • (L): Low

General

  • (H) Add grunt build tasks for distribution(minify(js/css), uglify, build, distribute)
  • (H) Add unit test framework (jasmine)
  • (H) Setup test suite with phantomjs support
  • (M) Add content length to each request/response
  • (M) Add timestamps for the delta between request/response. We can use the timestamp attribute found in MessageEvent.
  • (H) Add right aligned button per response that gives the user the ability to copy the formatted value as text
  • (H) Add checkbox to ignore heartbeat(ping/pong)

UI

  • (H) Remove bootstrap and its jquery dependency
  • (H) Replace with pure html/css toolbar with centered title and left aligned 'clear requests' button. Replaces bootstrap navbar above
  • (L) Add right aligned setting button
    • Functionality (Create dialog or drop down for the options below):
      • Option to ignore ping or any heartbeat related requests.
      • Option to ignore non-JSON based requests/responses. Ping being one of them.
      • Option to show timestamp delta between associated request/response. I need to think about this one..
      • Option to include a regex that ignores certain requests/responses, or only listens to certain requests/responses.

chrome-socket-analyzer's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chrome-socket-analyzer's Issues

socket.io issues

I was experimenting using your websocket interception technique and noticed that it does not appear to work correctly with socket.io. Have you ran into this by chance?

renderjson is not defined?

Just tried this on a stand alone machine (no direct internet access) and i get a uncaught reference error when opening the dev tools page. Is that normal?

Also, when internet connected, i'm not seeing any in the dev tools page for websocket enabled sites. What is the expected output?

license?

What's the license for this repo? (hoping something like ASF or MIT)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.