Comments (9)
小的话base64就行,约定好数据格式,比如:
纯文本 {type:”text”,content:”内容”}
语音 {type:”sound”,content:”base64”}
或者 传一个 http 地址,客户端收到消息后下载该文件再播放,这个文件可以是 zip mp4
from freeim.
万分感谢
from freeim.
大神咱们的redis需要配置什么吗?我改成本地的Server端和本地的redis就发送不了信息了,大神是什么原因啊?
from freeim.
只有那几个配置参数,理解一下
redis必须都指向同一台,同数据库
server参数必须是servers其中之一,并且可以当问到的imserver
from freeim.
我配置的就访问不到server呢,我的服务端配置
"ImServerOption": {
"CSRedisClient": "ip,password=,poolsize=5,writeBuffer=20480",
"Servers": "localhost:6001",
"Server": "localhost:6001"
},
这个是客户端配置
ImHelper.Initialization(new ImClientOptions
{
Redis = new CSRedis.CSRedisClient("ip,poolsize=5,password=,ssl=false,writeBuffer=20480"),
Servers = new[] { "localhost:6001" }
});
from freeim.
imserver 启动为 localhost:6001,就行了
from freeim.
能加Q给大神发图片吗
from freeim.
imserver启动的控制台窗口看下
from freeim.
谢谢大神 已经搞定了,回去后好好在看看,理解理解。
from freeim.
Related Issues (20)
- api 端了做了load balance 出现消息重复发送 HOT 1
- 加载index.html的时候报错,好像是连不上websocket
- 现在server 可以负载了,可以加一个单个server 的高可用
- 我在用Imcore做服务器端的时候,app端这边,如果是刚开始运行,能正常连接,但如果在app里面切换账号,然后就要重新换token连接,并且能够连上去,但过一会儿就关闭了。 HOT 2
- 希望能支持视频聊天
- imServer和web业务能否集成在一起呢 HOT 2
- 前端设置心跳检测,30秒后重连token失效 HOT 2
- 我给redis设置密码了,c#代码里面要怎么写? HOT 5
- 服务端出现多条上线、下线通知 HOT 6
- 部署到 centos ,出现错误:【127.0.0.1:6379/0】The operation is not allowed on non-connected sockets HOT 1
- 这个im支持发布在windows server 2016上吗? HOT 4
- 消息回执 HOT 2
- 在https方式下收不到消息 HOT 2
- 视频通话如何接入? HOT 2
- 作为游戏大厅服务器可行吗? HOT 1
- 关于WSS的配置问题 HOT 9
- 我真有点搞不懂 HOT 14
- 查了资料如果不指定端口,这里默认显示5000,原来是MS搞的
- 如何清理online表的无效数据? HOT 3
- 大神,网络斗d主不见了 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeim.