Add Websocket Message Inspector?

3 posts, 0 answers
  1. Jim
    Jim avatar
    1 posts
    Member since:
    Apr 2015

    Posted 01 Feb Link to this post

    I'd like to be able to decode/inspect websocket messages (messages are 20-byte binary) so that each message can appear in a human readable way.  We basically just want to extend/add a custom websocket inspector which will show the selected message after it's been custom "decoded".  I have purchased Debugging with Fiddler Second Edition, but don't see any guidance for implementing a custom Websockets inspector.

    Any guidance would be greatly appreciated!

    Thanks!

    Jim

  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    409 posts

    Posted 04 Feb Link to this post

    Hi,

    For the time being you could use the "Inspect as Response" button in the WebSocket tab to send the message to the Web Sessions list. There you could inspect it with a custom inspector.

    Regards,
    Tsviatko Yovtchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. EricLaw
    EricLaw avatar
    67 posts
    Member since:
    Oct 2012

    Posted 04 Feb in reply to Jim Link to this post

    Howdy, Jim! Thanks for your support of my book! This new topic isn't in the current edition of the book, but it will be covered in the next update to the ebook. 

    To enable your extension to view WebSocket traffic, write an inspector which implements the IResponseInspector2 and IWSMInspector interfaces. This latter interface has one method, AssignMessage(WebSocketMessage oWSM); your code should inspect the message when this method is called. 

Back to Top