}
if (msg instanceof XHROutMessage) {
sendMessage((XHROutMessage) msg, ctx.channel(), out);
}
if (msg instanceof XHRErrorMessage) {
XHRErrorMessage xhrErrorMessage = (XHRErrorMessage) msg;
encoder.encodePacket(xhrErrorMessage.getPacket(), out);
sendMessage(xhrErrorMessage, ctx.channel(), out);
}
if (msg instanceof WebSocketPacketMessage) {
handle((WebSocketPacketMessage) msg, ctx.channel(), out);