This commit is contained in:
yumoqing 2021-01-23 17:16:19 +08:00
parent 15b60050f8
commit 3ece881c60

View File

@ -41,10 +41,7 @@ class OSCServer(EventDispatcher):
def apihandle(self, api, *args): def apihandle(self, api, *args):
data = json.loads(args[0]) data = json.loads(args[0])
sock, ip_address, response_port = self.osc_server.get_sender() sock, ip_address, response_port = self.osc_server.get_sender()
self.dispatch(api, self.dispatch('on_%s' % api, api, data)
{'address':address,
'data':data
})
if api == 'broadcast': if api == 'broadcast':
return return
if not address in self.clients: if not address in self.clients: