# xuuhaoo/OkSocket

An blocking socket client for Android applications.

Repository: https://github.com/xuuhaoo/OkSocket
Canonical: https://ross.abutalabs.com/products/oksocket
Language: Java
License: MIT
License Family: permissive
Topics: socket, socket-io, android, client, tcp, tcp-client, tcp-socket, android-socket, android-socketio-client, android-socket-server, socket-server, server, tcp-server, android-tcp-server, android-server, server-side, android-server-json
Last push: 2020-01-10T09:40:20+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3247, "days_push": 2427, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2590, forks 431 (observed 2026-08-28T04:07:02.892113+00:00)

## What it is
OkSocket is a Java library providing a blocking TCP socket client (and optional server plugin) for Android and Java applications. It wraps low-level TCP communication with features like reconnection, heartbeats, SSL support, and sticky-packet handling so developers can focus on business logic.

## Use cases
- maintain a persistent TCP connection from an Android app
- implement automatic reconnect and heartbeat for a socket client
- send and receive structured messages over TCP without handling sticky packets manually
- connect to a socket server over SSL/TLS on Android
- run a lightweight TCP socket server on Android for device-to-device communication
- receive socket callbacks on the main thread for UI updates

## When to avoid
- you need asynchronous, non-blocking I/O or high-throughput messaging (consider Netty)
- you need WebSocket or HTTP-based communication rather than raw TCP
- you need an actively maintained library — the latest release dates to January 2020

## Facets
- artifact type: library
- maturity: maintenance
- function: networking, concurrency, middleware
- domain: mobile-development, android-tools, networking, developer-tools
- platform: jvm
- tags: tcp-client, tcp-server, socket-client, heartbeat, auto-reconnect, ssl-socket, sticky-packet-handling, blocking-io, android

## Member repositories
- xuuhaoo/OkSocket (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:02.892113+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:22:21.133139+00:00, confidence not recorded.
  - readme: https://github.com/xuuhaoo/OkSocket (fetched 2026-08-28T04:07:02.892113+00:00, sha 09a2c74d48b9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
