A barebones WebSocket client and server implementation written in 100% Java
https://tootallnate.github.io/Java-WebSocket/