Fix connect failure.
Fix createStream can not be invoked bug.
Merge pull request #78 from 0dayZh/master

Fix #50 connect failure.