Started rewrite for trigger socket events upload