An attempt to improve the WebSocket API.
Use Groovy 2.3.1.