chore(websocket.mock): add events to the callbacks
refactor(socket-factory): wrap the event callbacks
fix(communication): add logging service as a module dependency
refactor(communication): wrap the event callbacks
chore(socket-factory): add mock socket factory
chore(communication): add unit tests