Ensure WebSocketHandlerEndpoint can connect only once

WebSocketHandlerEndpoint and SockJsWebSocketHandler are stateful
wrappers that are not intended to be used with one client connection.