Smart handle socket events
Smart handle socket events

This code is uniformly handles:
- callback parameter and it's absence
- debug logging on error
- Sentry exceptions capture
- acknowledgment messages
FreeFeed/freefeed-server,FreeFeed/freefeed-server