Platform in Java to work with TomCat Websockets or native clients