fixed GH #640: can't get socket out of SocketNotification because of const