- added custom auth for socket connections which uses callbacks
- refactoring socket usage