Comments (8)
ios android,都有对应的 websocket client 库
from freeim.
我使用的是 SRWebSocket,SocketRocket 是facebook下对websocket的封装,然后在链接时卡住了,self.webScoket = [[SRWebSocket alloc] initWithURL:[NSURL URLWithString:@"ws://127.0.0.1:6379/ws/pre-connect"]];,,是否是该url链接设置的不对??若不对,应该怎么的拼写规则呢??网页端倒是能直接拿您的demo的方法直接调用。
from freeim.
pre-connect 要用 httpclient 请求,会返回 ws 连接
再用 websocket 连
from freeim.
。。。黑人问号???。。。大佬能给一个范例么??或者一个链接之类的
from freeim.
第一步,http请求 pre-connect 接口
第二步,用第一步返回的数据,看看他的内容,使用 websocket 连接
from freeim.
哦哦。。好的。。我去试试,,感谢大佬
from freeim.
巨佬就是牛逼。。。弱弱的问一个问题。。我看到你都是基于Guid来操作的。。能否切换到我自己的 ID格式呢??
from freeim.
把id 和guid对应关联一下就行了,没必要改
from freeim.
Related Issues (20)
- 我在用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
- 您好,这个框架只适用于uniapp编写的app吧?原生的app不适用这个FreeIM框架吧,哪怕是服务端用ImServer 服务端,客户端用app原生的websocket client 库 HOT 1
- 关于旧websocket连接释放问题 HOT 1
- 关于wss可以连接不能收发消息的问题 HOT 2
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.