Add Java 8 lambda-friendly factory method to WebSocket
Merge pull request #2475 from pvlugter/websocket-java8

Add WebSocket.whenReady for Java 8