bjnetwork-ws

A network client based on OKHttp3

License

License

Categories

Categories

Net
GroupId

GroupId

io.github.yangxlei
ArtifactId

ArtifactId

bjnetwork-ws
Last Version

Last Version

1.6.0
Release Date

Release Date

Type

Type

aar
Description

Description

bjnetwork-ws
A network client based on OKHttp3
Project URL

Project URL

https://github.com/yangxlei/network
Source Code Management

Source Code Management

https://github.com/yangxlei/network

Download bjnetwork-ws

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.yangxlei/bjnetwork-ws/ -->
<dependency>
    <groupId>io.github.yangxlei</groupId>
    <artifactId>bjnetwork-ws</artifactId>
    <version>1.6.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.yangxlei/bjnetwork-ws/
implementation 'io.github.yangxlei:bjnetwork-ws:1.6.0'
// https://jarcasting.com/artifacts/io.github.yangxlei/bjnetwork-ws/
implementation ("io.github.yangxlei:bjnetwork-ws:1.6.0")
'io.github.yangxlei:bjnetwork-ws:aar:1.6.0'
<dependency org="io.github.yangxlei" name="bjnetwork-ws" rev="1.6.0">
  <artifact name="bjnetwork-ws" type="aar" />
</dependency>
@Grapes(
@Grab(group='io.github.yangxlei', module='bjnetwork-ws', version='1.6.0')
)
libraryDependencies += "io.github.yangxlei" % "bjnetwork-ws" % "1.6.0"
[io.github.yangxlei/bjnetwork-ws "1.6.0"]

Dependencies

compile (2)

Group / Artifact Type Version
com.squareup.okhttp3 : okhttp-ws jar 3.3.1
io.github.yangxlei : bjnetwork jar 1.6.0

Project Modules

There are no modules declared in this project.

bjnetwork

A network client based OKHttp

基于 OKHttp 包装的网络工具库,包含功能:

  • cache, cookie 缓存处理
  • Http2, Spdy 支持
  • 日志输出开关
  • 上传下载进度
  • RxJava
  • WebSocket
  • 等等。

详细可跳转至:OKHttp源码浅析与最佳实践

#V1.6.0 修复自动重连时主动关闭失败问题

集成方式:

compile 'io.github.yangxlei:bjnetwork:1.6.0'

RxJava 扩展:

compile 'io.github.yangxlei:rx-bjnetwork:1.6.0'

WebSocket 扩展:

compile 'io.github.yangxlei:bjnetwork-ws:1.6.0'

Versions

Version
1.6.0
1.5.2
1.5.1
1.4.1