本仓库原始代码,已迁移至 react-chat ,请点击前往查看。
目前,野火IM Web有两个版本
- vue-chat,
基于
vue
技术栈开发,是未来开发的重心。 - react-chat,
基于
react
技术栈开发,功能完善,目前处于维护阶段,只修复严重bug,不开发新功能。
建议大家选择vue
版本进行二次开发!
Open source IM solution.
Home Page: http://docs.wildfirechat.cn
License: Other
本仓库原始代码,已迁移至 react-chat ,请点击前往查看。
目前,野火IM Web有两个版本
vue
技术栈开发,是未来开发的重心。react
技术栈开发,功能完善,目前处于维护阶段,只修复严重bug,不开发新功能。建议大家选择vue
版本进行二次开发!
web聊天,当有人发消息过来的时候没有提示音,很不方便
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.
由于项目需要修改proto.mini.js的一些内容,请问如何获取未压缩的源码,THX!
为了尽快定位问题,需要提供足够的信息,请按照我们的要求格式来提问。如果您不按照格式提问,我们将无法回复您的问题
可通过调用wfc.getVersion
或在proto.min.js
里面搜索WFCWebSDKVersion-
获取。
详细说明操作那个界面,每一步骤都要说得详细,如果是SDK或者api使用问题,需要详细说明调用的那个函数,参数都是什么。
描述一下什么现象,比如说函数返回error,errorcode是多少,或者界面上是什么状态,比如发送消息显示发送失败的红点。不要笼统的说功能有问题,不起作用。
请附上相关的错误
你认为正确的表现应该是什么样的。
是否是必现的,还是偶现的?是否只有在特殊的网络/设备/平台上出现,还是所有的都出现。
请用demo对比测试,demo上是什么状态。
问题
同一个账号登录APP和Web端,APP端撤回消息后,Web端的reacallMesage.content.extra里面c字段为空。Web主动撤回消息,web端和app端的recallMessage.content.extra中c字段包含了之前的消息内容。
期望
期望APP端撤回消息后,web端收到的extra.c字段包含之前的消息内容
期望SDK提供新的方法支持单聊和群聊删除消息(该消息可以是自己发送的也可以是别人发送)
删除消息的人的所有终端都看不到删除后的消息,单聊对方 和 群聊天中的其他人 还是能查看到该消息 。
为了尽快定位问题,需要提供足够的信息,请按照我们的要求格式来提问。如果您不按照格式提问,我们将无法回复您的问题
可通过调用wfc.getVersion
或在proto.min.js
里面搜索WFCWebSDKVersion-
获取。
详细说明操作那个界面,每一步骤都要说得详细,如果是SDK或者api使用问题,需要详细说明调用的那个函数,参数都是什么。
描述一下什么现象,比如说函数返回error,errorcode是多少,或者界面上是什么状态,比如发送消息显示发送失败的红点。不要笼统的说功能有问题,不起作用。
请附上相关的错误
你认为正确的表现应该是什么样的。
是否是必现的,还是偶现的?是否只有在特殊的网络/设备/平台上出现,还是所有的都出现。
请用demo对比测试,demo上是什么状态。
操作说明
用户发送好友请求,web端中,新的朋友里没有小红点提示
demo对比结果
demo中也没有红点提示,但请求已收到
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
上面是报错信息
Web端 A给B发送语音。 B拒绝邀请主动挂断。
A的sessionCallback.didCallEndWithReason接收到的reson不对,
预期 REASON_RemoteHangup, 实际 RemoteNetworkError.
麻烦也检查一下其他场景推送。
刷新列表时候 会话的 lastMessage 为空,其实有历史的聊天记录的。
收发消息正常。
edge浏览器webim中,点击手机端发送的语音消息,没有反应,点击事件的后台报错,同点击PDF下载报错一致。
edge版本:
Microsoft Edge 44.18362.449.0
Microsoft EdgeHTML 18.18362
λ 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)
这个该怎么解决呢?
希望roaming, remote_history_message 实现 app端,web端实现单独配置。
为了尽快定位问题,需要提供足够的信息,请按照我们的要求格式来提问。如果您不按照格式提问,我们将无法回复您的问题
可通过调用wfc.getVersion
或在proto.min.js
里面搜索WFCWebSDKVersion-
获取。
详细说明操作那个界面,每一步骤都要说得详细,如果是SDK或者api使用问题,需要详细说明调用的那个函数,参数都是什么。
描述一下什么现象,比如说函数返回error,errorcode是多少,或者界面上是什么状态,比如发送消息显示发送失败的红点。不要笼统的说功能有问题,不起作用。
请附上相关的错误
你认为正确的表现应该是什么样的。
是否是必现的,还是偶现的?是否只有在特殊的网络/设备/平台上出现,还是所有的都出现。
请用demo对比测试,demo上是什么状态。
场景
期望支持,群管理员设置全员禁言后,可以添加部分成员能发言。
之前有提供接口。创建群的时候可以设置群类型是1。 对于此类的群,可以增加配置是否支持用户退出群后依旧能够拉取退群之前的所有历史聊天记录。
web-chat 在platform.js中强制关联了react的相关Menu内容和Trigger,不利于对其他语言的支持。建议提供的基础API需要与具体的某个应用脱勾,方便支持Vue等其他语言
A给B发送消息,B未读,B删除和A的会话。然后B调用setConversationTimestamp重新创建该会话,创建会话后执行了clearConversationUnreadStatus 但是 A显示的之前的消息还是未读。 A 发送一条消息给B。 B再执行clearConversationUnreadStatus 消息才会变成已读。。。 群聊也有这个问题。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.