[doc] Improve `WebSocket#{p{i,o}ng,send}()` documentation
[doc] Improve `WebSocket#{p{i,o}ng,send}()` documentation

Specify that an error is thrown if the ready state is `CONNECTING` and
that if an error occurs, the callback is called with the error as its
first argument.

Fixes #1953

websockets/ws