Support for polling socket events