This command will send an event only to the specified client. The client can register for the event as a normal callback. The event structure is the same as a network event structure.
Server:
import viznet
viznet.server.start()
MY_EVENT = viznet.id('MyEvent')
.
.
.
viznet.server.sendClient('CLIENT1',MY_EVENT,message='Hello')
Client:import viznet
viznet.client.connect('ServerName')
MY_EVENT = viznet.id('MyEvent')
def onMyEvent(e):
print('Received event from server with message:',e.message)
viz.callback(MY_EVENT,onMyEvent)