RelaySession - SocketSVC Docs
SocketSVC Docs

RelaySession

One relayed voice connection, from the moment the relay has picked a backend until the connection closes.

這一頁還沒有翻譯,以下顯示英文原文。

Generated from source

Record com.socketsvc.proxy.api.RelaySession — generated from RelaySession.java. Edit the Javadoc in the Java source, then run pnpm gen:api.

package com.socketsvc.proxy.api;

public record RelaySession(UUID playerId, String serverName, InetSocketAddress backendAddress, long openedAtNanos) { ... }

One relayed voice connection, from the moment the relay has picked a backend until the connection closes.

The player id is unverified. It is whatever the connecting client put in its uuid query parameter, and anyone can put any online player's id there. The relay never authenticates anybody: the backend does, by the one-time token, after this. Use the id to route and to report, never as proof that a player is on voice.

Components

ComponentDescription
UUID playerIdthe connecting player as the client claims, from its uuid query parameter; unverified, see above
String serverNamethe proxy's own name for the chosen backend, or null when a ProxyBackendResolver supplied an address without naming a server
InetSocketAddress backendAddressthe backend voice listener this connection was piped to
long openedAtNanosSystem#nanoTime() when the relay opened; only meaningful as a difference against another nanoTime() reading

本頁內容

以 Markdown 檢視

詢問 AI 這一頁的內容