fix connection limit
add a stream layer
add a stream layer
fix connection error event
add encryption
add encryption
use coffee way