walsh06
walsh06

Reputation: 97

Inspect SignalR Message with Fiddler

I am trying to use Fiddler to see the message format for a chat app using SignalR. But nothing is appearing in Fiddler when I send a message to the hub or receive one back. I am assuming I have to configure something in order to see these messages. Fiddler is picking up when I refresh the page and connect but nothing else appears. The purpose is so I can get the correct message format when using SignalR-Objc

Upvotes: 5

Views: 7134

Answers (3)

N. Taylor Mullen
N. Taylor Mullen

Reputation: 18301

  1. Turn Streaming on in Fiddler.
  2. If your SignalR transport is WebSockets requests may take a few seconds to come through while fiddler is on.

Update: See @J. Polfer's answer below on how to see Websocket messages in Fiddler.

Upvotes: 5

J. Polfer
J. Polfer

Reputation: 12481

As of Fiddler 4.5, you can view Websocket data natively in Fiddler.

Simply double-click on the connection (look for signalr/connect? HTTP requests), and click on the WebSocket tab in Fiddler.

Upvotes: 6

walsh06
walsh06

Reputation: 97

It worked once I removed websockets from the transports. All the information showed up when I just used Longpolling.

Upvotes: 1

Related Questions