func WithRecordInput(filename string) wswTap {
	return func(wsw *wsWrapper) error {
		// TODO(cqsd)
		log.Printf("UNIMPLEMENTED: Logging recv'd data to %s\n", filename)
		remoteHost := wsw.conn.RemoteAddr().String()
		inputTap := wsw.getReadTap()
		go func() error {
			buffer := make([]byte, 1024)
			for {
				n, err := inputTap.Read(buffer)
				if err != nil {
					return err
				}
				log.Printf("RECV (%s ): %d bytes (%x)\n", remoteHost, n, buffer[:n])
			}
		}()
		return nil
	}
}
// WithRecordInput tees reads from the websocket (ie data recv'd from the
// client) to a file. *UNIMPLEMENTED*
WithRecordInput tees reads from the websocket  to a file. *UNIMPLEMENTED
// WithRecordInput tees reads from the websocket ( ie data recv ' d from the // client ) to a file . * UNIMPLEMENTED *
func WithRecordInput(filename string) wswTap {
	return func(wsw *wsWrapper) error {
		log.Printf("UNIMPLEMENTED: Logging recv'd data to %s\n", filename)
		remoteHost := wsw.conn.RemoteAddr().String()
		inputTap := wsw.getReadTap()
		go func() error {
			buffer := make([]byte, 1024)
			for {
				n, err := inputTap.Read(buffer)
				if err != nil {
					return err
				}
				log.Printf("RECV (%s ): %d bytes (%x)\n", remoteHost, n, buffer[:n])
			}
		}()
		return nil
	}
}
func WithRecordInput ( filename string ) wswTap { return func ( wsw * wsWrapper ) error { log . Printf ( " \n " , filename ) remoteHost := wsw . conn . RemoteAddr ( ) . String ( ) inputTap := wsw . getReadTap ( ) go func ( ) error { buffer := make ( [ ] byte , 1024 ) for { n , err := inputTap . Read ( buffer ) if err != nil { return err } log . Printf ( " \n " , remoteHost , n , buffer [ : n ] ) } } ( ) return nil } }
WithRecordInput tees reads from the websocket  to a file.
WithRecordInput tees reads from the websocket to a file .
// TODO(cqsd)