|
本帖最后由 sdwfzqm 于 2018-3-22 11:14 编辑
我在本地安装了win32的服务,这是启动日志
[2018-03-22 10:06:02(415)][I] Current File Version[7, 0, 0, 0],Build time:2018-02-05 10:04:10
[2018-03-22 10:06:02(415)][I] Debug Level:4, Debug Flags:0x0
[2018-03-22 10:06:02(430)][I] Start TCP Server Successed(port=8906)!
[2018-03-22 10:06:02(430)][I] Start UDP Server Successed(port=8907)!
[2018-03-22 10:06:02(446)][I] Load SDK Filter Plus:IPCFilterPlus.dll Success, ver:AnyChat SDK Filter Plus (IPC), for windows v7.0, Build Time:Feb 5 2018 10:01:46
[2018-03-22 10:06:02(446)][I] IPCFilterPlus listen port:8900
[2018-03-22 10:06:02(446)][I] Start Server At Demo Mode!
web端要求安装的插件也已经安装AnyChatWebSetup.exe,不过打开
http://cloud.anychat.cn/web/item/AnyChatWebDemo/index.html
仍然提示要安装插件。
然后利用web端登录时(js也已经从官网下载的,并粘贴过来),代码如下var instance=AnyChatWebSDK.sdkInit(initOpt);//初始化参数设置
var initOpt={
//登录人账户
nickName:'demo@anychat.cn',
//AnyChat服务器地址,如连接云平台,地址为cloud.anychat.cn,端口为8906
serverIp: "demo.anychat.cn",
//AnyChat服务器端口号
serverPort: 8906,
//连接成功通知*-
onLogin: onLogin,
//连接断开通知
onDisConnect: onDisConnect,
};
报错
anychatwebsdk.js:2 Uncaught TypeError: Cannot read property 'serverIp' of undefined
|
|