A Java event based WebSocket and HTTP server