Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API reference

The generated reference lives at /api/.

It is produced by Dokka from the source and published alongside this guide on every release, so it is exhaustive and cannot drift from the code.

What is in it

Only dev.adven.sockit.api — every public type, with its signatures and KDoc:

SocketClientEntry point and multiplex registry
NamespaceSocketPer-namespace socket
socketOptions { } / SocketOptionsConfiguration
ConnectionStateLifecycle states
SocketErrorSealed failure vocabulary
SocketExceptionThrown by suspending calls
SocketEvent, SocketPayload, AckInbound event shape
StreamCommand, Subscribe, Unsubscribe, SocketCommandOutbound commands
Transports, EventBufferConfig, EventBufferOverflow, LoggerSupporting types

Internal packages — protocol, engineio, transport, socketio, internal — are excluded from the reference because they are excluded from the contract. They can change in a patch release.

Generating it locally

./gradlew :socketio:dokkaGeneratePublicationHtml   # → socketio/build/dokka/html/

Use that task, not dokkaHtml. The latter is a disabled Dokka V1 task that produces nothing and still reports success.

Which to read

This guide explains how and why; the reference lists what. If you are learning the library, read the guide and follow links into the reference for exact signatures. If you already know what you are looking for, the reference is faster.