Giter Club home page Giter Club logo

Comments (5)

YeautyYE avatar YeautyYE commented on May 22, 2024

是什么场景需要获取到URL?

1.WebSocket启动时,客户端能连接到服务端的URL已经是确定的,不需要获取
2.如果一定要获取,可以在OnOpen时headers.get("host")获取host, 而path是写死在当前类的@ServerEndpoint中的

from netty-websocket-spring-boot-starter.

ernestmeng avatar ernestmeng commented on May 22, 2024

谢谢,已经解决了。我们是一个服务器,接不同视频流,有每个摄像头ip等参数,客户端连接过来也是需要有对应的ip才能推送相应的摄像头识别结果。另外问一下,这个是否支持作为client?现在只看到有ServerEndpoint注解,但是没有ClientEndpoint,我们当然是想使用同一种方式,不想一个应用中一会是基于netty的,一会是基于Tomcat的

from netty-websocket-spring-boot-starter.

YeautyYE avatar YeautyYE commented on May 22, 2024

目前没有,如果需要的话,可以邮件给你提供netty 写的websocket client demo

from netty-websocket-spring-boot-starter.

ernestmeng avatar ernestmeng commented on May 22, 2024

[email protected]

from netty-websocket-spring-boot-starter.

ernestmeng avatar ernestmeng commented on May 22, 2024

非常感谢

from netty-websocket-spring-boot-starter.

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.