Spark-WS is a Java Websockets library inspired by Spark for Java (which is inspired by Sinatra for Ruby).