mobile CCTV,mobile surveillance,police body worn cameras

标题: websocket [打印本页]

author: sdwudi727    time: 2019-8-16 09:25
标题: websocket
前端里通过websocket实现连接的源码在哪

author: admin    time: 2019-8-16 09:51
都在那个WEB API的server plug-in包里面。
author: admin    time: 2019-8-16 09:52
所有软件、文档手册,都开放在QQ微云网盘地址供开放下载:
https://share.weiyun.com/55EkBv1

最新的server软件在smarteye_server目录下,server-d-xxxx.zip
最新的client软件在smarteye_client目录下,Client-xxxx-yyyy.zip
USB上位机软件,在网盘products_cd ---> tools ---> USB manager_for_4GBWC ---> for_own
产品手册,例如WZ128,在网盘products_cd ---> latest_update ---> manuals ---> 4G执法记录仪BWC
MPU手册,在网盘MPU---> doc目录下
WORD/PPT文档,在网盘products_cd ---> marketing ---> w 目录下
WEB SDK(支持H5和OCX), 在网盘 smarteye_server ---> server_plugin ---> WEB_API目录下,webAPI_nginx_2019_mmdd_hhmm.exe
author: sdwudi727    time: 2019-8-16 11:07
admin post on2019-8-16 09:52
所有软件、文档手册,都开放在QQ微云网盘地址供开放下载:
https://share.weiyun.com/55EkBv1

demo的例子代码都是打包后的,不是源码,我们看看怎么调取websocket,具体点说就是,设备上线后页面里设备颜色就变成在线状态了,这个是通过websocke实现的吧,我现在看不到这个代码,被封装了,告诉我怎么调
author: fanghj90    time: 2019-8-16 11:40
sdwudi727 post on2019-8-16 11:07
demo的例子代码都是打包后的,不是源码,我们看看怎么调取websocket,具体点说就是,设备上线后页面里设 ...

您好,
web demo的页面和js提供的都是源码。
websocket和后台的通讯是封装在webapi内部的。
您是要webapi源码?
author: hardfire    time: 2019-8-16 11:40
哦,这个是我们自己写的通信协议代码,协议代码按理是不能开放的,会导致我们整个系统泄密。
如果您一定要购买源代码,收费30万。
author: sdwudi727    time: 2019-8-16 11:45
fanghj90 post on2019-8-16 11:40
您好,
web demo的页面和js提供的都是源码。
websocket和后台的通讯是封装在webapi内部的。

设备上线下线时,页面设备列表的状态变化,是通过什么实现的,有例子吗,demo里的例子不能随着设备的打开关闭改变在线状态,只有刷新页面时状态才改变
author: IBeli    time: 2019-8-16 12:02
sdwudi727 post on2019-8-16 11:45
设备上线下线时,页面设备列表的状态变化,是通过什么实现的,有例子吗,demo里的例子不能随着设备的打开 ...

设备上线下session会有通知。
伪代码:

var session = new jSW.SWSesion(...);
sesssion.swAddCallBack("notify", function(sender, cmd, data){
       if(data.msg == "notify_pu_onoffline"){ //上下线通知
               data.content //具体信息
       }
})



[attach]1858[/attach][attach]1859[/attach]







欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/) Powered by Discuz! X3.2