最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to change the default context path of socket io server side implementation using netty in java spring boot application - Sta

programmeradmin1浏览0评论

We have implemented socket io server side implementation using netty socket io in existing java spring boot application. We are able to connect socket io by using localhost:8788 from postman. And in postman we can observe the url like below

localhost:8788/socket.io/

But we have to change the default context path i.e /socket.io to /msgsvc and we need url like below

localhost:8788/msgsvc

For that we tried below

config.setContext("/msgsvc");

We run the application and socket io server also started. But when we trigger from postman with the below url, unable to establish the connection and getting 400 error localhost:8788/msgsvc

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论