Rename direction constant DirectionRead/WriteOnly to DirectionRead/Writeable.
Rename delegate method’s param name read/writeStream to stream.
Commit for try to run.
Fix. default direction to read/write.