Giter Club home page Giter Club logo

Comments (8)

2881099 avatar 2881099 commented on September 28, 2024

ios android,都有对应的 websocket client 库

from freeim.

luobingbing0207 avatar luobingbing0207 commented on September 28, 2024

我使用的是 SRWebSocket,SocketRocket 是facebook下对websocket的封装,然后在链接时卡住了,self.webScoket = [[SRWebSocket alloc] initWithURL:[NSURL URLWithString:@"ws://127.0.0.1:6379/ws/pre-connect"]];,,是否是该url链接设置的不对??若不对,应该怎么的拼写规则呢??网页端倒是能直接拿您的demo的方法直接调用。

from freeim.

2881099 avatar 2881099 commented on September 28, 2024

pre-connect 要用 httpclient 请求,会返回 ws 连接

再用 websocket 连

from freeim.

luobingbing0207 avatar luobingbing0207 commented on September 28, 2024

。。。黑人问号???。。。大佬能给一个范例么??或者一个链接之类的

from freeim.

2881099 avatar 2881099 commented on September 28, 2024

第一步,http请求 pre-connect 接口

第二步,用第一步返回的数据,看看他的内容,使用 websocket 连接

from freeim.

luobingbing0207 avatar luobingbing0207 commented on September 28, 2024

哦哦。。好的。。我去试试,,感谢大佬

from freeim.

luobingbing0207 avatar luobingbing0207 commented on September 28, 2024

巨佬就是牛逼。。。弱弱的问一个问题。。我看到你都是基于Guid来操作的。。能否切换到我自己的 ID格式呢??

from freeim.

2881099 avatar 2881099 commented on September 28, 2024

把id 和guid对应关联一下就行了,没必要改

from freeim.

Related Issues (20)

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.