fixed connect 3.0 issue

- sockets module
- connect 3.0 deprecated message warning