微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在socket.onmessagewebsocket内调用函数并终止先前的函数调用对于同一func?

如何解决在socket.onmessagewebsocket内调用函数并终止先前的函数调用对于同一func?

如果iam在connection.onmessage(Websocket)内调用函数,我如何确定如果遇到/接收到多条消息-必须为最新消息调用函数,并且终止先前的函数调用(对于同一函数) ?

D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning: Passing (type,1) or '1type' as a synonym of type is deprecated; in a future version of numpy,it will be understood as (type,(1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8",np.int8,1)])
D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\dtypes.py:517: FutureWarning: Passing (type,)type'.
  _np_quint8 = np.dtype([("quint8",np.uint8,1)])
D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\dtypes.py:518: FutureWarning: Passing (type,)type'.
  _np_qint16 = np.dtype([("qint16",np.int16,1)])
D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\dtypes.py:519: FutureWarning: Passing (type,)type'.
  _np_quint16 = np.dtype([("quint16",np.uint16,1)])
D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\dtypes.py:520: FutureWarning: Passing (type,)type'.
  _np_qint32 = np.dtype([("qint32",np.int32,1)])
D:\Anaconda\envs\tensorflow\lib\site-packages\tensorflow\python\framework\dtypes.py:525: FutureWarning: Passing (type,)type'.
  np_resource = np.dtype([("resource",np.ubyte,1)])
D:\Anaconda\envs\tensorflow\lib\site-packages\h5py\__init__.py:40: UserWarning: h5py is running against HDF5 1.10.5 when it was built against 1.10.4,this may cause problems

}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。