近期项目中需要实现Server-Sent Events(SSE)代理,最初技术选型是想基于OkHttp实现。 要使用okhttp代理,则需要额外引入okhttp-sse(4.12.0版本,2023.10.17)依赖,具体如下: <dependency> <groupId>com.square