Stream connection / long polling using HTTP Kit?

I am trying to use a streaming HTTP connection that never closes (this is a Gnip Compliance stream).

I want to work with the HTTP Kit , but I cannot get it to work. If I pass an argument :stream:

@(http/get "http://example.com/stream-connection" {:as :stream})

The response is not returned until the request is closed (and it will never be completed).

Is there any way to do this?

I tried the same with clj-http , no luck.

+4
source share

Source: https://habr.com/ru/post/1658677/


All Articles