HttpPanelViewFactory viewFactory = new WebSocketHexViewFactory();
manager.addRequestViewFactory(WebSocketComponent.NAME, viewFactory);
manager.addResponseViewFactory(WebSocketComponent.NAME, viewFactory);
// add the default Hex view for binary-opcode messages
HttpPanelDefaultViewSelectorFactory viewSelectorFactory = new HexDefaultViewSelectorFactory();
manager.addRequestDefaultViewSelectorFactory(WebSocketComponent.NAME, viewSelectorFactory);
manager.addResponseDefaultViewSelectorFactory(WebSocketComponent.NAME, viewSelectorFactory);
// replace the normal Text views with the ones that use syntax highlighting
viewFactory = new SyntaxHighlightTextViewFactory();