<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def sockets(self):
 """Returns the set of the sockets."""

        if self.listener is None:
            return self.clients
        else:
            return self.clients.union([self.listener])