func WithRecordOutput(filename string) wswTap {
	return func(wsw *wsWrapper) error {
		// TODO(cqsd)
		log.Printf("UNIMPLEMENTED: Logging sent data to %s\n", filename)
		outputTap := wsw.getWriteTap()
		go func() error {
			buffer := make([]byte, 1024)
			for {
				n, err := outputTap.Read(buffer)
				if err != nil {
					return err
				}
				log.Printf("SEND: %d bytes to client (%s)\n", n, string(buffer[:n]))
			}
		}()
		return nil
	}
}
// WithRecordOutput tees writes to the websocket (ie data sent back to the
// client) to a file. *UNIMPLEMENTED*
WithRecordOutput tees writes to the websocket  to a file. *UNIMPLEMENTED
// WithRecordOutput tees writes to the websocket ( ie data sent back to the // client ) to a file . * UNIMPLEMENTED *
func WithRecordOutput(filename string) wswTap {
	return func(wsw *wsWrapper) error {
		log.Printf("UNIMPLEMENTED: Logging sent data to %s\n", filename)
		outputTap := wsw.getWriteTap()
		go func() error {
			buffer := make([]byte, 1024)
			for {
				n, err := outputTap.Read(buffer)
				if err != nil {
					return err
				}
				log.Printf("SEND: %d bytes to client (%s)\n", n, string(buffer[:n]))
			}
		}()
		return nil
	}
}
func WithRecordOutput ( filename string ) wswTap { return func ( wsw * wsWrapper ) error { log . Printf ( " \n " , filename ) outputTap := wsw . getWriteTap ( ) go func ( ) error { buffer := make ( [ ] byte , 1024 ) for { n , err := outputTap . Read ( buffer ) if err != nil { return err } log . Printf ( " \n " , n , string ( buffer [ : n ] ) ) } } ( ) return nil } }
WithRecordOutput tees writes to the websocket  to a file.
WithRecordOutput tees writes to the websocket to a file .
// TODO(cqsd)