Class MediaGatewayV8Connection
java.lang.Object
moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
moe.kyokobot.koe.internal.gateway.MediaGatewayV8Connection
- All Implemented Interfaces:
MediaGatewayConnection
-
Field Summary
Fields inherited from class moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
allocator, bootstrap, channel, connectAttempt, connectFuture, connection, eventExecutor, resumable, sslContext, voiceServerInfo, websocketURI -
Constructor Summary
ConstructorsConstructorDescriptionMediaGatewayV8Connection(MediaConnectionImpl connection, VoiceServerInfo voiceServerInfo) -
Method Summary
Modifier and TypeMethodDescriptionlonggetPing()getValve()protected voidhandlePayload(io.netty.buffer.ByteBuf byteBuf) protected voidhandlePayload(JsonObject object) protected voididentify()protected voidprotected voidresume()voidsendMLSCommitWelcome(byte[] commitWelcome) voidsendMLSInvalidCommitWelcome(int transitionId) voidsendMLSKeyPackage(byte[] keyPackage) Send a marshalled MLS key packagevoidsendSecureFramesReadyForTransition(int transitionId) voidupdateSpeaking(int mask) Methods inherited from class moe.kyokobot.koe.internal.gateway.AbstractMediaGatewayConnection
close, isOpen, reconnect, sendInternalBinPayload, sendInternalPayload, sendRaw, sendRawBin, start, stripPort80
-
Constructor Details
-
MediaGatewayV8Connection
-
-
Method Details
-
getValve
- Specified by:
getValvein interfaceMediaGatewayConnection- Overrides:
getValvein classAbstractMediaGatewayConnection- Returns:
- The
MediaValveused by this connection, or null if this gateway version does not support it.
-
identify
protected void identify()- Specified by:
identifyin classAbstractMediaGatewayConnection
-
resume
protected void resume()- Specified by:
resumein classAbstractMediaGatewayConnection
-
handlePayload
- Specified by:
handlePayloadin classAbstractMediaGatewayConnection
-
handlePayload
protected void handlePayload(io.netty.buffer.ByteBuf byteBuf) - Specified by:
handlePayloadin classAbstractMediaGatewayConnection
-
onClose
- Overrides:
onClosein classAbstractMediaGatewayConnection
-
getPing
public long getPing() -
updateSpeaking
public void updateSpeaking(int mask) - Specified by:
updateSpeakingin interfaceMediaGatewayConnection- Specified by:
updateSpeakingin classAbstractMediaGatewayConnection
-
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)
-