added socket.io support for findOrigin