clear for native socket and socket.io

Change-Id: I4a83810352cddb76888c76329b6baa3d66bb4fd9