add "onSend" to Connection and Filter, onDisconnect(true/false) split to
"disconnect" and "onDisconnect"