public WebSocketCompositeHandler(){
  LOG.entering(CLASS_NAME,"<init>");
  WebSocketSelectedHandler nativeHandler=WEBSOCKET_NATIVE_HANDLER_FACTORY.createSelectedHandler();
  nativeHandler.setListener(handlerListener);
  WebSocketSelectedHandler emulatedHandler=WEBSOCKET_EMULATED_HANDLER_FACTORY.createSelectedHandler();
  emulatedHandler.setListener(handlerListener);
  strategyChoices.put("ws",new String[]{"java:ws","java:wse"});
  strategyChoices.put("wss",new String[]{"java:wss","java:wse+ssl"});
  strategyChoices.put("wsn",new String[]{"java:ws"});
  strategyChoices.put("wssn",new String[]{"java:wsn"});
  strategyChoices.put("wse",new String[]{"java:wse"});
  strategyChoices.put("wse+ssl",new String[]{"java:wse+ssl"});
  strategyMap.put("java:ws",new WebSocketStrategy("ws",nativeHandler,WEBSOCKET_NATIVE_CHANNEL_FACTORY));
  strategyMap.put("java:wss",new WebSocketStrategy("wss",nativeHandler,WEBSOCKET_NATIVE_CHANNEL_FACTORY));
  strategyMap.put("java:wse",new WebSocketStrategy("ws",emulatedHandler,WEBSOCKET_EMULATED_CHANNEL_FACTORY));
  strategyMap.put("java:wse+ssl",new WebSocketStrategy("wss",emulatedHandler,WEBSOCKET_EMULATED_CHANNEL_FACTORY));
  strategyMap.put("java:wsn",new WebSocketStrategy("wss",nativeHandler,WEBSOCKET_NATIVE_CHANNEL_FACTORY));
}

public WebSocketCompositeHandler ( ) { LOG . entering ( CLASS_NAME , "<init>" ) ; WebSocketSelectedHandler nativeHandler = WEBSOCKET_NATIVE_HANDLER_FACTORY . createSelectedHandler ( ) ; nativeHandler . setListener ( handlerListener ) ; WebSocketSelectedHandler emulatedHandler = WEBSOCKET_EMULATED_HANDLER_FACTORY . createSelectedHandler ( ) ; emulatedHandler . setListener ( handlerListener ) ; strategyChoices . put ( "ws" , new String [ ] { "java:ws" , "java:wse" } ) ; strategyChoices . put ( "wss" , new String [ ] { "java:wss" , "java:wse+ssl" } ) ; strategyChoices . put ( "wsn" , new String [ ] { "java:ws" } ) ; strategyChoices . put ( "wssn" , new String [ ] { "java:wsn" } ) ; strategyChoices . put ( "wse" , new String [ ] { "java:wse" } ) ; strategyChoices . put ( "wse+ssl" , new String [ ] { "java:wse+ssl" } ) ; strategyMap . put ( "java:ws" , new WebSocketStrategy ( "ws" , nativeHandler , WEBSOCKET_NATIVE_CHANNEL_FACTORY ) ) ; strategyMap . put ( "java:wss" , new WebSocketStrategy ( "wss" , nativeHandler , WEBSOCKET_NATIVE_CHANNEL_FACTORY ) ) ; strategyMap . put ( "java:wse" , new WebSocketStrategy ( "ws" , emulatedHandler , WEBSOCKET_EMULATED_CHANNEL_FACTORY ) ) ; strategyMap . put ( "java:wse+ssl" , new WebSocketStrategy ( "wss" , emulatedHandler , WEBSOCKET_EMULATED_CHANNEL_FACTORY ) ) ; strategyMap . put ( "java:wsn" , new WebSocketStrategy ( "wss" , nativeHandler , WEBSOCKET_NATIVE_CHANNEL_FACTORY ) ) ; }
creates a websocket that opens up a full - duplex connection to the target location on a supported websocket provider
