web socket client defers request

This avoid sending request when connection is not ready