Fixing notification to send html via socket