websockets 1-8: Add explicit frame length

Return frame length and frame for text, ping, pong, and close frames