InMemorySocketStore

class InMemorySocketStore(maxConnections: Int = DEFAULT_MAX_CONNECTIONS, maxMessagesPerConnection: Int = DEFAULT_MAX_MESSAGES_PER_CONNECTION) : SocketStore

Bounded, thread-safe in-memory store for socket lifecycle and redacted frame previews.

One small function per SocketStore operation plus the byte/connection-capacity helpers this class alone owns; splitting further would fragment one cohesive bounded-storage boundary.

Constructors

Link copied to clipboard
constructor(maxConnections: Int = DEFAULT_MAX_CONNECTIONS, maxMessagesPerConnection: Int = DEFAULT_MAX_MESSAGES_PER_CONNECTION)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun append(message: SocketMessage)
Link copied to clipboard
open override fun appendLifecycle(event: SocketLifecycleEvent)
Link copied to clipboard
fun clear()
Link copied to clipboard
open override fun close(connectionId: String, state: SocketConnectionState, timestampEpochMs: Long, error: String? = null)
Link copied to clipboard
open override fun connection(id: String): SocketConnection?
Link copied to clipboard
open override fun connections(): List<SocketConnection>
Link copied to clipboard
open override fun lifecycleEvents(connectionId: String? = null): List<SocketLifecycleEvent>
Link copied to clipboard
open override fun messages(query: SocketMessageQuery): List<SocketMessage>
open override fun messages(connectionId: String? = null): List<SocketMessage>
Link copied to clipboard
open override fun open(connection: SocketConnection)
Link copied to clipboard
open override fun transition(connectionId: String, state: SocketConnectionState, timestampEpochMs: Long, code: Int? = null, reason: String? = null, error: String? = null)
Link copied to clipboard