code: func (s *Server) GetSocket(id string) *Socket {
  	// Lock the mutex.
  	s.socketsMutex.Lock()
  	defer s.socketsMutex.Unlock()
  
  	// Obtain the socket.
  	socket, ok := s.sockets[id]
  	if !ok {
  		return nil
  	}
  
  	return socket
  }
docs: // GetSocket obtains a socket by its ID.
  // Returns nil if not found.