Vizard 7 » Command Index » Vizard modules » viznet » <viznet:client>.disconnect
7.7

<viznet:client>.disconnect

Disconnect from the server

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

Remarks

This command will disconnect the client from the server. The server will receive a viznet.CLIENT_DISCONNECT_EVENT with the optional data arguments.

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

Return Value

None

Example

import viznet

viznet.client.connect('ServerName')

.
.
.

viznet.client.disconnect(message='Goodbye')