Socket monitoring support

See #161 #152

TODO:
- [x] Error reporting
- [x] Event metadata

Please, leave you suggestions and comments.