moved readFrame and writeFrame prototype to prototype of WebSocketBase