Open dontstopnow opened 11 years ago
I doubt if this is possible using the way Postman pings API's right now. Can you give me a link to an example which works on the web?
Update: The new Chrome packaged apps platform has a chrome.socket module to send and receive data using TCP and UDP connections. Consuming any API should be possible within Postman. http://developer.chrome.com/apps/socket.html
@dontstopnow Can you check if this is still an issue with the latest version of the app (v4.8)?
This is an issue for me, but I did not test twitter. Nest also has an HTTP Streaming API (https://developers.nest.com/documentation/cloud/rest-streaming-guide/). On testing with my own test server (via node.js), Postman 4.8.1 (Chrome/Windows) just says "Loading..." forever. Curl is okay, as long as each 'response' has a carriage return to terminate it. Only then does curl update. From a browser, one would usually add an accept header for "text/event-stream".
@a85, any sample implementation you can show of the chrome.socket integration with postman? Would really help.
Putting my 2 cents in on this one as well.
We are currently trying to test in our company some streaming API's and running into the exact same issues. Works via cURL calls but Postman shows nothing and eventually will crash when the buffer fills up.
Can we get this added to the backlog and investigated?
I am running on Postman 6.0.10 on Mac. cc: @madebysid and @a85
Showing a fully streamed response (HTTP2/Websocket/etc) is a different beast than the issue of choking on large responses. Additionally, postman does support receiving streamed responses... it just does not have a way to stream it to the UI and because it loads at one chunk, it causes buffer overflow.
What @mccannt mentioned at https://github.com/postmanlabs/postman-app-support/issues/278#issuecomment-389572117 is something that should work. We have covered some basics for the same in our latest Canary build and would release a variant that does not choke on buffer overflow very soon.
When connecting to a streaming HTTP connection such as the twitter streaming api, no response is shown, but when connecting using curl the output is spooled out in the terminal. Any way to update the response window with the output? Thanks!