Git Product home page Git Product logo

web-chat's Introduction

野火IM Web端说明

本仓库原始代码,已迁移至 react-chat ,请点击前往查看。

目前,野火IM Web有两个版本

  1. vue-chat, 基于vue技术栈开发,是未来开发的重心。
  2. react-chat, 基于react技术栈开发,功能完善,目前处于维护阶段,只修复严重bug,不开发新功能。

建议大家选择vue版本进行二次开发!

web-chat's People

Contributors

airycanon avatar axxop avatar dependabot[bot] avatar gaoyaoxin avatar heavyrain2012 avatar imndx avatar kotojo avatar peaceme2019 avatar siqiii avatar trazyn avatar weizihua avatar yujun2013 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

web-chat's Issues

web-chat不能和社区版server联通吗?

提issue小提示

为了尽快定位问题,需要提供足够的信息,请按照我们的要求格式来提问。如果您不按照格式提问,我们将无法回复您的问题

Web SDK 版本信息

可通过调用wfc.getVersion或在proto.min.js里面搜索WFCWebSDKVersion-获取。

操作说明

详细说明操作那个界面,每一步骤都要说得详细,如果是SDK或者api使用问题,需要详细说明调用的那个函数,参数都是什么。

表现现象

描述一下什么现象,比如说函数返回error,errorcode是多少,或者界面上是什么状态,比如发送消息显示发送失败的红点。不要笼统的说功能有问题,不起作用。

日志

请附上相关的错误

预期结果

你认为正确的表现应该是什么样的。

补充条件

是否是必现的,还是偶现的?是否只有在特殊的网络/设备/平台上出现,还是所有的都出现。

demo对比结果

请用demo对比测试,demo上是什么状态。

proto.min.js文件报错:Uncaught Error: illegal buffer——现象:不能正常的接收信息

提issue小提示

为了尽快定位问题,需要提供足够的信息,请按照我们的要求格式来提问。如果您不按照格式提问,我们将无法回复您的问题

Web SDK 版本信息

可通过调用wfc.getVersion或在proto.min.js里面搜索WFCWebSDKVersion-获取。

操作说明

详细说明操作那个界面,每一步骤都要说得详细,如果是SDK或者api使用问题,需要详细说明调用的那个函数,参数都是什么。

表现现象

描述一下什么现象,比如说函数返回error,errorcode是多少,或者界面上是什么状态,比如发送消息显示发送失败的红点。不要笼统的说功能有问题,不起作用。

日志

请附上相关的错误

预期结果

你认为正确的表现应该是什么样的。

补充条件

是否是必现的,还是偶现的?是否只有在特殊的网络/设备/平台上出现,还是所有的都出现。

demo对比结果

请用demo对比测试,demo上是什么状态。

不发送消息的情况下,无法将好友或者群加入到会话列表

场景描述: 在通讯录里面搜索某位好友或者群并发起消息。如果该好友或者群不在历史会话,web端未提供API将该好友或者群加入到会话列表。
期望: 希望提供api,传递用户id或者群id。api判断到如果该id不在历史会话列表里就自动将其添加到会话列表第一个。类似于PC微信的场景。
image

下载仓库代码后无法在本地运行会propt.min.js里代码有报错; release版本打包后是electron包不是web包

提issue小提示

为了尽快定位问题,需要提供足够的信息,请按照我们的要求格式来提问。如果您不按照格式提问,我们将无法回复您的问题

Web SDK 版本信息

可通过调用wfc.getVersion或在proto.min.js里面搜索WFCWebSDKVersion-获取。

操作说明

详细说明操作那个界面,每一步骤都要说得详细,如果是SDK或者api使用问题,需要详细说明调用的那个函数,参数都是什么。

表现现象

描述一下什么现象,比如说函数返回error,errorcode是多少,或者界面上是什么状态,比如发送消息显示发送失败的红点。不要笼统的说功能有问题,不起作用。

日志

请附上相关的错误

预期结果

你认为正确的表现应该是什么样的。

补充条件

是否是必现的,还是偶现的?是否只有在特殊的网络/设备/平台上出现,还是所有的都出现。

demo对比结果

请用demo对比测试,demo上是什么状态。

获取聊天室信息失败

Web SDK 版本信息

WFCWebSDKVersion-2020-09-09

操作说明

调用getChatroomInfo方法,第二个参数传入 new Date().getTime()

表现现象

走了失败的回调,code为0

日志

image

补充条件

必出现

web-chat 按教程启动,这样是 启动了吗?访问没有反应吗,localhost:3000

PS D:\eclipse\web-chat> npm run dev

[email protected] dev D:\eclipse\web-chat
concurrently --kill-others "npm run hot-server"

[0]
[0] > [email protected] hot-server D:\eclipse\web-chat
[0] > cross-env NODE_ENV=development node -r babel-register scripts/dev.js
[0]
[0] Server is running with port 5000 �
[0] [BABEL] Note: The code generator has deoptimised the styling of "D:/eclipse/web-chat/src/js/wfc/proto/proto.min.js"
as it exceeds the max of "500KB".
[0] webpack built 2942c49102431c714cc0 in 21189ms
[0] ‼ 「wdm」: Hash: 2942c49102431c714cc0
[0] Version: webpack 4.41.2
[0] Time: 21189ms
[0] Built at: 2020-08-11 8:42:53 PM
[0] Asset Size Chunks Chunk Names
[0] app.js 9.38 MiB main [emitted] main
[0] app.js.map 7.58 MiB main [emitted] [dev] main
[0] index.html 2.57 KiB [emitted]
[0] src/assets/fonts/icomoon/fonts/icomoon.eot 146 KiB [emitted]
[0] src/assets/fonts/icomoon/fonts/icomoon.svg 312 KiB [emitted]
[0] src/assets/fonts/icomoon/fonts/icomoon.ttf 146 KiB [emitted]
[0] src/assets/fonts/icomoon/fonts/icomoon.woff 146 KiB [emitted]
[0] Entrypoint main = app.js app.js.map
[0] [0] multi webpack-hot-middleware/client?path=http://localhost:5000/__webpack_hmr babel-polyfill ./src/index.js 52 by
tes {main} [built]
[0] [./node_modules/babel-polyfill/lib/index.js] 833 bytes {main} [built]
[0] [./node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js] 23.9 KiB {main} [built]
[0] [./node_modules/core-js/fn/regexp/escape.js] 108 bytes {main} [built]
[0] [./node_modules/core-js/shim.js] 8.03 KiB {main} [built]
[0] [./node_modules/querystring-es3/index.js] 127 bytes {main} [built]
[0] [./node_modules/react-dom/index.js] 1.33 KiB {main} [built]
[0] [./node_modules/react/index.js] 190 bytes {main} [built]
[0] [./node_modules/strip-ansi/index.js] 161 bytes {main} [built]
[0] [./node_modules/webpack-hot-middleware/client-overlay.js] (webpack)-hot-middleware/client-overlay.js 2.17 KiB {main}
[built]
[0] [./node_modules/webpack-hot-middleware/client.js?path=http://localhost:5000/__webpack_hmr] (webpack)-hot-middleware/
client.js?path=http://localhost:5000/__webpack_hmr 7.68 KiB {main} [built]
[0] [./node_modules/webpack-hot-middleware/process-update.js] (webpack)-hot-middleware/process-update.js 4.35 KiB {main}
[built]
[0] [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {main} [built]
[0] [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {main} [built]
[0] [./src/index.js] 513 bytes {main} [built]
[0] + 1225 hidden modules
[0]
[0] WARNING in ./node_modules/source-map-support/source-map-support.js
[0] Module not found: Error: Can't resolve 'fs' in 'D:\eclipse\web-chat\node_modules\source-map-support'
[0] @ ./node_modules/source-map-support/source-map-support.js
[0] @ ./node_modules/universal-emoji-parser/dist/main.js
[0] @ ./src/js/ui/utils/emoji.js
[0] @ ./src/js/ui/stores/contacts.js
[0] @ ./src/js/ui/stores/index.js
[0] @ ./src/voip.js
[0] @ ./src/js/ui/viewManager.js
[0] @ ./src/index.js
[0] @ multi webpack-hot-middleware/client?path=http://localhost:5000/__webpack_hmr babel-polyfill ./src/index.js
[0]
[0] WARNING in ./node_modules/source-map-support/source-map-support.js
[0] Module not found: Error: Can't resolve 'module' in 'D:\eclipse\web-chat\node_modules\source-map-support'
[0] @ ./node_modules/source-map-support/source-map-support.js
[0] @ ./node_modules/universal-emoji-parser/dist/main.js
[0] @ ./src/js/ui/utils/emoji.js
[0] @ ./src/js/ui/stores/contacts.js
[0] @ ./src/js/ui/stores/index.js
[0] @ ./src/voip.js
[0] @ ./src/js/ui/viewManager.js
[0] @ ./src/index.js
[0] @ multi webpack-hot-middleware/client?path=http://localhost:5000/__webpack_hmr babel-polyfill ./src/index.js
[0] Child html-webpack-plugin for "index.html":
[0] Asset Size Chunks Chunk Names
[0] index.html 6.81 KiB 0
[0] Entrypoint undefined = index.html
[0] [./node_modules/html-webpack-plugin/lib/loader.js!./src/index.html] 2.79 KiB {0} [built]
[0] i 「wdm」: Compiled with warnings.

h5 im运行不了

G:\工作内容\客户、个人及公司资料存放\野火im\web-chat\node_modules\ref>if not defined npm_config_node_gyp (node "C:\Users\zm\AppData\Roa
ming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: E:\python.EXE -c import platform; print(platform.python_version());
gyp ERR! stack ImportError: No module named site
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:204:12)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at maybeClose (internal/child_process.js:886:16)
gyp ERR! stack at Socket. (internal/child_process.js:342:11)
gyp ERR! stack at emitOne (events.js:96:13)
gyp ERR! stack at Socket.emit (events.js:188:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:501:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "D:\Node\node.exe" "C:\Users\zm\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd G:\工作内容\客户、个人及公司资料存放\野火im\web-chat\node_modules\ref
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

[email protected] install G:\工作内容\客户、个人及公司资料存放\野火im\web-chat\node_modules\ffi
node-gyp rebuild

G:\工作内容\客户、个人及公司资料存放\野火im\web-chat\node_modules\ffi>if not defined npm_config_node_gyp (node "C:\Users\zm\AppData\Roa
ming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Command failed: E:\python.EXE -c import platform; print(platform.python_version());
gyp ERR! stack ImportError: No module named site
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (child_process.js:204:12)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at maybeClose (internal/child_process.js:886:16)
gyp ERR! stack at Socket. (internal/child_process.js:342:11)
gyp ERR! stack at emitOne (events.js:96:13)
gyp ERR! stack at Socket.emit (events.js:188:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:501:12)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "D:\Node\node.exe" "C:\Users\zm\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd G:\工作内容\客户、个人及公司资料存放\野火im\web-chat\node_modules\ffi
gyp ERR! node -v v6.10.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\ref):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\zm\AppData\Roaming\npm-cache_logs\2020-01-10T05_38_27_935Z-debug.log

上面是报错信息

运行h5,报了错

λ npm install
D:\Node\node_modules\npm\node_modules\npmlog\log.js:57
log.progressEnabled = log.gauge.isEnabled()
^

TypeError: log.gauge.isEnabled is not a function
at Object. (D:\Node\node_modules\npm\node_modules\npmlog\log.js:57:33)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at D:\Node\node_modules\npm\bin\npm-cli.js:22:13
at Object. (D:\Node\node_modules\npm\bin\npm-cli.js:152:3)
D:\Node\node_modules\npm\node_modules\npmlog\log.js:57
log.progressEnabled = log.gauge.isEnabled()
^

TypeError: log.gauge.isEnabled is not a function
at Object. (D:\Node\node_modules\npm\node_modules\npmlog\log.js:57:33)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at D:\Node\node_modules\npm\bin\npm-cli.js:22:13
at Object. (D:\Node\node_modules\npm\bin\npm-cli.js:152:3)

这个该怎么解决呢?

加入聊天室不会拉取消息

Web SDK 版本信息

WFCWebSDKVersion-2020-09-09

操作说明

调用joinChatroom方法,走了成功的回调

表现现象

没有自动拉取聊天室中的历史消息

日志

image
image

预期结果

应该会自动拉取部分消息,之前七月份某版本是正常的

补充条件

必然出现

【web sdk】wfc.clearConversationUnreadStatus 某些情况下不生效

A给B发送消息,B未读,B删除和A的会话。然后B调用setConversationTimestamp重新创建该会话,创建会话后执行了clearConversationUnreadStatus 但是 A显示的之前的消息还是未读。 A 发送一条消息给B。 B再执行clearConversationUnreadStatus 消息才会变成已读。。。 群聊也有这个问题。

[react-demo] callEndReson推送不对

Web端 A给B发送语音。 B拒绝邀请主动挂断。
A的sessionCallback.didCallEndWithReason接收到的reson不对,
预期 REASON_RemoteHangup, 实际 RemoteNetworkError.

麻烦也检查一下其他场景推送。

获取聊天室用户信息错误

Web SDK 版本信息

WFCWebSDKVersion-2020-09-09

操作说明

调用getChatroomMemberInfo方法,第二个参数100

表现现象

走了成功的回调,但是返回数据的内容都为undefined

日志

image

补充条件

必出现

install依赖文件后启动和打包都报错

  1. ERROR in ./src/js/wfc/messages/message.js
    Module not found: Error: Can't resolve 'long' in '/Users/ghost/Desktop/web-chat/src/js/wfc/messages'
    2.ERROR in ./src/js/wfc/messages/notification/recallMessageNotification.js
    Module not found: Error: Can't resolve 'long' in '/Users/ghost/Desktop/web-chat/src/js/wfc/messages/notification'

撤回功能

问题
同一个账号登录APP和Web端,APP端撤回消息后,Web端的reacallMesage.content.extra里面c字段为空。Web主动撤回消息,web端和app端的recallMessage.content.extra中c字段包含了之前的消息内容。
期望
期望APP端撤回消息后,web端收到的extra.c字段包含之前的消息内容

mac 报错

[email protected] install /Users/dotcool/Documents/project/web-chat/node_modules/ref
node-gyp rebuild

CXX(target) Release/obj.target/binding/src/binding.o
../src/binding.cc:222:30: error: no matching member function for call to 'BooleanValue'
bool persistent = info[3]->BooleanValue();
~~~~~~~~~^~~~~~~~~~~~
/Users/dotcool/Library/Caches/node-gyp/12.12.0/include/node/v8.h:2603:8: note: candidate function not viable: requires single argument 'isolate', but no arguments were provided
bool BooleanValue(Isolate* isolate) const;
^
/Users/dotcool/Library/Caches/node-gyp/12.12.0/include/node/v8.h:2606:51: note: candidate function not viable: requires single argument 'context', but no arguments were provided
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^
../src/binding.cc:253:38: error: too few arguments to function call, single argument 'context' was not specified
size_t size = info[2]->Uint32Value();
~~~~~~~~~~~~~~~~~~~~ ^
/Users

请增加删除消息功能【非本地删除】

期望SDK提供新的方法支持单聊和群聊删除消息(该消息可以是自己发送的也可以是别人发送)

删除消息的人的所有终端都看不到删除后的消息,单聊对方 和 群聊天中的其他人 还是能查看到该消息 。

linux报错

[0] ERROR in ./src/js/wfc/av/avenginekit.js
[0] Module not found: Error: Can't resolve './AVEngineState' in '/home/web-chat/src/js/wfc/av'
[0] @ ./src/js/wfc/av/avenginekit.js 42:21-47
[0] @ ./src/js/wfc/client/wfc.js
[0] @ ./src/app.js
[0] @ ./src/js/ui/viewManager.js
[0] @ ./src/index.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.