https://issues.apache.org/bugzilla/show_bug.cgi?id=51181
--- Comment #25 from Pid <bugzi...@pidster.com> 2012-01-10 09:35:09 UTC --- > // WebSocket event processor > public void event(WebSocketEvent event) throws IOException, ServletException > { > WebSocketServletRequest request = event.getHttpServletRequest(); > WebSocketServletResponse response = event.getHttpServletResponse(); > // initial connection > if (event.getEventType() == WebSocketEvent.EventType.BEGIN) { > ... > } > // > if (event.getEventType() == WebSocketEvent.EventType.MESSAGE) { > // Get message > WebSocketMessage inboundMessage = request.getMessage(); > // Send message back to the client > response.sendMessage(new WebSocketMessage(...)); The server end probably also needs to be able to handle the receipt/issue of a WebSocketFrame (e.g. PING/PONG frames). It's possible to send a CLOSE event in between other frames and you might want to clean up before shutdown. Sidenote: I think a Jetty & Tomcat collaboration would be pragmatic. IMHO extending javax.servlet.http.WebSocketServlet would be a good final outcome. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org