add subscribe options
add onConnect callback