Giter VIP home page Giter VIP logo

netty-websocket-spring-boot-demo's Introduction

简介

netty-websocket-Server注册到EurekaServer的demo

启动

分别启动eureka-server(端口:8761)gateway(端口:8777)ws-service(端口:8779)三个项目.

eureka-server是注册中心,gatewayws-servicepush-service启动后都会注册到这。eureka-server提供了RESTAPI:http://localhost:8761/eureka/apps获取当前eureka-server已注册的服务,在三个项目都启动好后,访问这个链接可以看到已经注册的三个实例。

ws-service应用为普通springboot web应用,它提供了websocket测试客户端网页版,应用名为push-service,可以在浏览器中访问链接:http://localhost:8777/push-service/,这里是通过网关访问界面。

ws-service同时集成了netty-websocket-spring-boot-starter,在启动ws-service应用时,同时也启动了配置的websocket服务,路径为/websocket,端口为8787。websocket应用注册到eureka-server的名称为ws-service,那么通过网关访问websocket服务的链接为ws://localhost:8777/ws-service/websocket

感谢

netty-websocket-spring-boot-starter

websocket网页版测试客户端:https://juejin.im/post/5baf20525188255c425837ad

netty-websocket-spring-boot-demo's People

Watchers

James Cloos avatar

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.