Class MediaGatewayV8Connection
java.lang.Object
moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
moe.kyokobot.koe.internal.gateway.MediaGatewayV5Connection
moe.kyokobot.koe.internal.gateway.MediaGatewayV8Connection
- All Implemented Interfaces:
MediaGatewayConnection
Adds message buffering, the server re-delivers messages after the last acknowledged sequence number on resume.
Koe implements DAVE only on this version.
-
Field Summary
Fields inherited from class moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
allocator, bootstrap, channel, connectAttempt, connectFuture, connection, eventExecutor, resumable, sslContext, version, voiceServerInfo, websocketURI -
Constructor Summary
ConstructorsConstructorDescriptionMediaGatewayV8Connection(MediaConnectionImpl connection, VoiceServerInfo voiceServerInfo) -
Method Summary
Modifier and TypeMethodDescription@Nullable DAVEManagerprotected voidhandlePayload(io.netty.buffer.ByteBuf byteBuf) protected voidhandlePayload(JsonObject object) Handles the opcodes all gateway versions share, newer versions override it to handle their own opcodes first.protected Objectprotected JsonObjectprotected voidCalled after the connection handler got the session description.protected voidonUserDisconnected(String userId) Called before the listeners are notified.protected voidonUsersConnected(List<String> userIds) Called after the listeners were notified.protected JsonObjectvoidsendMLSCommitWelcome(byte[] commitWelcome) voidsendMLSInvalidCommitWelcome(int transitionId) voidsendMLSKeyPackage(byte[] keyPackage) Send a marshalled MLS key packagevoidsendSecureFramesReadyForTransition(int transitionId) Methods inherited from class moe.kyokobot.koe.internal.gateway.MediaGatewayV5Connection
codecs, getValve, onProtocolSelected, onReady, onStreamsChangedMethods inherited from class moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
close, getPing, identify, isOpen, onClose, reconnect, resume, sendInternalBinPayload, sendInternalPayload, sendRaw, sendRawBin, start, stripPort80, stripScheme, updateSpeaking
-
Constructor Details
-
MediaGatewayV8Connection
-
-
Method Details
-
getDAVEManager
-
identifyPayload
- Overrides:
identifyPayloadin classMediaGatewayV5Connection
-
resumePayload
- Overrides:
resumePayloadin classMediaGatewayV5Connection
-
heartbeatPayload
- Overrides:
heartbeatPayloadin classAbstractMediaGatewayConnection
-
handlePayload
Description copied from class:AbstractMediaGatewayConnectionHandles the opcodes all gateway versions share, newer versions override it to handle their own opcodes first.- Overrides:
handlePayloadin classAbstractMediaGatewayConnection
-
handlePayload
protected void handlePayload(io.netty.buffer.ByteBuf byteBuf) - Overrides:
handlePayloadin classAbstractMediaGatewayConnection
-
onSessionDescription
Description copied from class:AbstractMediaGatewayConnectionCalled after the connection handler got the session description.- Overrides:
onSessionDescriptionin classAbstractMediaGatewayConnection
-
onUsersConnected
Description copied from class:AbstractMediaGatewayConnectionCalled after the listeners were notified.- Overrides:
onUsersConnectedin classAbstractMediaGatewayConnection
-
onUserDisconnected
Description copied from class:AbstractMediaGatewayConnectionCalled before the listeners are notified.- Overrides:
onUserDisconnectedin classMediaGatewayV5Connection
-
sendMLSKeyPackage
public void sendMLSKeyPackage(byte[] keyPackage) Description copied from interface:MediaGatewayConnectionSend a marshalled MLS key package -
sendMLSCommitWelcome
public void sendMLSCommitWelcome(byte[] commitWelcome) -
sendMLSInvalidCommitWelcome
public void sendMLSInvalidCommitWelcome(int transitionId) -
sendSecureFramesReadyForTransition
public void sendSecureFramesReadyForTransition(int transitionId)
-