Commit 3725df79 by zeven

优化广播接收数据处理

parent ac1010cf
{ {
"name": "zm-face-counter", "name": "zm-face-counter",
"version": "1.1.0", "version": "1.1.1",
"private": true, "private": true,
"scripts": { "scripts": {
"android": "react-native run-android", "android": "react-native run-android",
......
...@@ -15,6 +15,7 @@ import Speech from './utils/Speech'; ...@@ -15,6 +15,7 @@ import Speech from './utils/Speech';
import Restart from './utils/Restart'; import Restart from './utils/Restart';
import TcpRelay from './utils/TcpRelay'; import TcpRelay from './utils/TcpRelay';
import Installer from './utils/Installer'; import Installer from './utils/Installer';
import UdpBroadcast from './utils/UdpBroadcast';
import {counterInterval} from './utils/authInterval'; import {counterInterval} from './utils/authInterval';
import {counterLogin} from './utils/authLogin'; import {counterLogin} from './utils/authLogin';
import {host} from './utils/config'; import {host} from './utils/config';
...@@ -154,6 +155,8 @@ class App extends React.Component { ...@@ -154,6 +155,8 @@ class App extends React.Component {
} }
if (!window.socket.hasListeners('cmdOperate')) if (!window.socket.hasListeners('cmdOperate'))
window.socket.on('cmdOperate', this.command.bind(this)); window.socket.on('cmdOperate', this.command.bind(this));
if (!window.socket.hasListeners('udpBroadcast'))
window.socket.on('udpBroadcast', UdpBroadcast.send);
}; };
// 运营端远程命令 // 运营端远程命令
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment