Add support for connect and disconnect
Add rejecting if socket not connected