def server(name=None, description=None, **kwargs): '''Create the :class:`.SocketServer` with :class:`EchoServerProtocol` as protocol factory. ''' name = name or 'echoserver' description = description or 'Echo Server' return SocketServer(EchoServerProtocol, name=name, description=description, **kwargs)
def server(description=None, **kwargs): '''Create the :class:`pulsar.apps.socket.SocketServer` instance with :class:`EchoServerProtocol` as protocol factory.''' description = description or 'Echo Server' return SocketServer(EchoServerProtocol, description=description, **kwargs)