Use array instead of object to trace which socket is opened