363738394041424344
textFrame.release(); } private static EmbeddedChannel createWebsocketChannel(final SockJsConfig config) { return new EmbeddedChannel( new WebSocket13FrameDecoder(true, false, 2048), new WebSocketTransport(config), new WebSocketSendHandler()); }
313233343536373839
return new EmbeddedChannel( new HttpServerCodec(), new CorsInboundHandler(), new CorsOutboundHandler(), new WebSocket13FrameEncoder(true), new WebSocket13FrameDecoder(true, false, 2048), new WebSocketTransport(config), new SockJsHandler()); }