code: func (w *Writer) Reset(dest io.Writer, state ws.State, op ws.OpCode) {
  	w.n = 0
  	w.dirty = false
  	w.fragmented = false
  	w.dest = dest
  	w.state = state
  	w.op = op
  }
docs: // Reset discards any buffered data, clears error, and resets w to have given
  // state and write frames with given OpCode to dest.