Vizard 7 » Command Index » Vizard modules » viznet » <viznet:server>.stop
7.6

<viznet:server>.stop

Stop the server

<viznet:server>.stop(  
*args  
**kw  
)  
*args
Optional arguments to pass to the clients
**kw
Optional keyword arguments to pass to the clients

Remarks

This command will stop the server. It will send a viznet.SERVER_DISCONNECT_EVENT to all connected clients with the optional data.

Note: viznet will automatically call this command when the server quits the Vizard simulation. This command is only needed if the server needs to pass optional data to the clients when it stops.

Return Value

None

Example

import viznet

viznet.server.start()

.
.
.

viznet.server.stop(message='Going down')