【问题标题】:SSE (Server Sent Events) Client library for Clojure?Clojure 的 SSE(服务器发送事件)客户端库?
【发布时间】:2018-11-12 15:54:09
【问题描述】:

我想在 Clojure 中处理 服务器发送事件流。 有谁知道一个小型 client 库可以做到这一点吗?

我期待找到类似https://github.com/stalefruits/gniazdo 的东西,它适用于Websockets,但适用于SSE

我找不到任何东西,唯一可能是一个好的候选人的库不再维护https://github.com/clojurewerkz/ssese

提前谢谢...

【问题讨论】:

    标签: clojure client server-sent-events


    【解决方案1】:

    【讨论】:

    • AFAICS 虽然是一个有趣的链接汇总,但这些都没有回答 clojure SSE 客户端库的 OP 问题。
    【解决方案2】:

    immutant.web 支持内置 SSE:http://immutant.org/documentation/current/apidoc/guide-web.html#h3155

    其他web服务器也有这个中间件:https://github.com/kumarshantanu/ring-sse-middleware,虽然我自己没试过。

    【讨论】:

    • 请求是针对 SSE client 而不是服务器实现。
    猜你喜欢
    • 2015-08-05
    • 1970-01-01
    • 2012-06-03
    • 1970-01-01
    • 1970-01-01
    • 2021-09-01
    • 1970-01-01
    • 1970-01-01
    • 2017-08-22
    相关资源
    最近更新 更多