Allow websocket listeners to define at most 2 OnMessage handlers, one fo...

...r binary and one for either string or json data
there's no need to check for only one string listener - the proxies map definition takes care of it:
Map<ListenerType, ListenerProxy> proxies = new HashMap<>(2);