#481 fix for socket.io compatibility with .fromEventTarget