Class NetherNetXboxSignaling
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
org.cloudburstmc.netty.channel.nethernet.signaling.AbstractNetherNetXboxSignaling
org.cloudburstmc.netty.channel.nethernet.signaling.NetherNetXboxSignaling
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler,AutoCloseable,NetherNetClientSignaling,NetherNetServerSignaling,NetherNetSignaling
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.SharableNested classes/interfaces inherited from interface org.cloudburstmc.netty.channel.nethernet.signaling.NetherNetClientSignaling
NetherNetClientSignaling.NotFoundHandlerNested classes/interfaces inherited from interface org.cloudburstmc.netty.channel.nethernet.signaling.NetherNetServerSignaling
NetherNetServerSignaling.NewConnectionHandler, NetherNetServerSignaling.PongDataNested classes/interfaces inherited from interface org.cloudburstmc.netty.channel.nethernet.signaling.NetherNetSignaling
NetherNetSignaling.IceServerInfo, NetherNetSignaling.SignalHandler -
Field Summary
Fields inherited from class org.cloudburstmc.netty.channel.nethernet.signaling.AbstractNetherNetXboxSignaling
channel, connectFuture, eventLoopGroup, handlers, iceServers, localNetworkId, log, newConnectionHandler, notFoundHandler, uri, xboxToken -
Constructor Summary
ConstructorsConstructorDescriptionNetherNetXboxSignaling(long localNetworkId, String xboxToken) Creates a NetherNetXboxSignaling instance.NetherNetXboxSignaling(String xboxToken) Creates a NetherNetXboxSignaling instance with a random local Network ID.NetherNetXboxSignaling(String networkId, String xboxToken) Creates a NetherNetXboxSignaling instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidchannelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.websocketx.TextWebSocketFrame frame) protected voidonConnected(io.netty.channel.ChannelHandlerContext ctx) Called when the WebSocket handshake is complete.voidsendSignal(String targetNetworkId, String data) Sends a signalling message to the remote peer.Methods inherited from class org.cloudburstmc.netty.channel.nethernet.signaling.AbstractNetherNetXboxSignaling
bind, channelInactive, close, connect, connectInternal, dispatchSignalToPipeline, exceptionCaught, getIceServers, getLocalNetworkId, isActive, parseTurnServers, removeSignalHandler, setAdvertisementData, setNewConnectionHandler, setNotFoundHandler, setSignalHandler, userEventTriggeredMethods inherited from class io.netty.channel.SimpleChannelInboundHandler
acceptInboundMessage, channelReadMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemovedMethods inherited from interface org.cloudburstmc.netty.channel.nethernet.signaling.NetherNetServerSignaling
allowsIceOnLocalPort, serverIdentity, usesTrickleIceMethods inherited from interface org.cloudburstmc.netty.channel.nethernet.signaling.NetherNetSignaling
sendFullSdp
-
Constructor Details
-
NetherNetXboxSignaling
Creates a NetherNetXboxSignaling instance.- Parameters:
networkId- The Network ID to use.xboxToken- The Minecraft Bedrock Session authorization header ('MCToken ***').
-
NetherNetXboxSignaling
Creates a NetherNetXboxSignaling instance.- Parameters:
localNetworkId- The local Network ID to use.xboxToken- The Minecraft Bedrock Session authorization header ('MCToken ***').
-
NetherNetXboxSignaling
Creates a NetherNetXboxSignaling instance with a random local Network ID.- Parameters:
xboxToken- The Minecraft Bedrock Session authorization header ('MCToken ***').
-
-
Method Details
-
onConnected
protected void onConnected(io.netty.channel.ChannelHandlerContext ctx) Description copied from class:AbstractNetherNetXboxSignalingCalled when the WebSocket handshake is complete.- Specified by:
onConnectedin classAbstractNetherNetXboxSignaling
-
channelRead0
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.handler.codec.http.websocketx.TextWebSocketFrame frame) - Specified by:
channelRead0in classio.netty.channel.SimpleChannelInboundHandler<io.netty.handler.codec.http.websocketx.TextWebSocketFrame>
-
sendSignal
Description copied from interface:NetherNetSignalingSends a signalling message to the remote peer.- Parameters:
targetNetworkId- The Network ID of the destination (String to support Realms).data- The raw signalling payload.
-