[英]Is it possible to set the Origin header while creating the websocket connection
我瀏覽了一些網站,發現在使用 web 套接字時無法添加標頭。是真的嗎我必須將原點 header 作為 Origin: "http://localhost:4200" ...
[英]Is it possible to set the Origin header while creating the websocket connection
我瀏覽了一些網站,發現在使用 web 套接字時無法添加標頭。是真的嗎我必須將原點 header 作為 Origin: "http://localhost:4200" ...
[英]How is Rsocket Asynchronous?
我是 rsocket 的新手,目前正在學習它相對於 HTTP2 和其他協議的優勢。 我不明白的一件事是: RSocket 協議接受了這一點,並將所有通信建模為單個網絡連接上的多路復用消息流,並且在等待響應時從不同步阻塞。 這里的同步性是什么意思? 可以說,通過 HTTP2/1.1(使用 Spri ...
[英]Continue to receive new events for completed REQUEST_STREAM in rsocket
給定一個 Rsocket 端點(Spring) @MessageMapping("chat.{chatId}") Flux<Message> getChats(@DestinationVariable String chatId) { Mono<Cha ...
[英]Spring RSocket Security JWT Access Denied Error
我正在嘗試使用 Spring 引導 RSocket 和使用 JWT 令牌的安全性。 它給了我一個拒絕訪問錯誤,沒有其他有用的信息來幫助調試? 拒絕訪問。 ApplicationErrorException (0x201): 訪問在 app//io.rsocket.exceptions.Except ...
[英]Is there a way to replace the mirror package for flutter?
這是 flutter rsocket-dart 代碼。 https://github.com/rsocket/rsocket-dart/blob/master/lib/route/reflection.dart 但是,我不能在 flutter 中使用這個庫,因為這個 package 使用 'da ...
[英]RSocket error 0x201 (APPLICATION_ERROR): empty String
我有一個從瀏覽器(在 create-react-app 生態系統中)到 spring 網絡服務器的 Roscket 連接,連接正常,但一段時間后我在客戶端收到以下錯誤(rsocket js 0.0.27) 服務器沒有顯示任何錯誤,並且在繼續重置客戶端后,有人可以幫我解決這個問題嗎? 如果沒有,可能會 ...
[英]How to route an RSocket client in Flutter
這是 java (webflux) 代碼。 我在 java 中使用此代碼 這是我的 flutter 代碼。 我使用 rsocket:^1.0.0。 我如何在 flutter 中收到此消息? 我想在 flutter 中創建 controller “chat.receive” 路由。 如果 java 代 ...
[英]Is there a way to keep an Reactive Stream open forever on Spring Reactive using Rsocket, Websocket or Http?
我想連接服務器上的客戶端以接收某個實體的 Flux,然后保持連接(以非阻塞 + 異步方式)以便在同一個 Flux 中接收更新或新插入。 換句話說,我希望數據庫在有一些更新或新數據時通知服務器。 服務器通知客戶端。 全部采用異步+非阻塞方式。 我嘗試使用 spring-boot-starter-we ...
[英]rSocket websocket postman testing mime types and endpoints
我正在使用spring-boot-starter-webflux和spring-boot-starter-rsocket版本2.7.1 rSocket 傳輸設置為websocket ,如下所示: 有一個 spring @Controller端點@MessageMapping設置用於一個簡單的str ...
[英]Multiple producers for one consumer or request
我可以看到我可以將一個請求路由到響應者,並且有不同的實現,比如 fireAndForget 等等,但我有一個案例,生產者負責他們的數據子集。 具體來說,生產者實際上只是 Kafka 消費者,他們被分配了整個主題的一組唯一分區。 有沒有辦法基本上將請求路由到所有這些生產者,並讓生產者決定他們是否有東 ...
[英]How to pass JWT token in Metadata in Rsocket Client in Spring Boot
我在元數據中添加了路由和 JWT 令牌,但是在將令牌從 RSocket 客戶端傳遞到 RSocket 服務器時,它在令牌中添加了額外的字節。 客戶端代碼---------- 嘗試聲明時的服務器端令牌: 如您所見,令牌開始時有一些額外的字符。 有誰知道如何使用 SpringBoot 和 ...
[英]Flutter RSocket client not connecting to RSocket API created using Spring Boot
我在 Flutter 中玩 RSocket。 我創建了兩個 RSocket api,如下所示: 並嘗試連接並從他們那里得到答案,例如: . 我可以像rsc --route stream tcp://localhost:7000 --stream一樣使用 RSocket 命令行工具成功調用我 ...
[英]How do I add headers to Rsocket metadata - JavaScript?
Javascript 方面,如何將 Accept-Language 標頭添加到 Rsocket 流? 我需要以某種方式將其添加到元數據中,但我找不到它的文檔 這是我的設置: ...
[英]How to create RSocket request endpoints without using Spring Library in Java?
我想使用計划 Java RSocket SDK 創建 RSocket 請求端點,而不使用 Spring 框架。 我能夠在以下代碼片段的幫助下創建示例請求。 這僅適用於請求tcp://localhost:7000 。 但我想創建與此類似的不同端點。 ...
[英]How to make the path public in RSocketSecurity(Spring)
我為 RSocketSecurity 配置了 class 類似的東西 並對其進行授權(僅允許經過身份驗證的用戶訂閱) 我想設置一些可以公開訪問的路由,但其中大多數應該是經過授權的。 實現這一目標的最佳方法是什么? ...
[英]Spring RSocket over WebSocket - Access user information from HTTP session
賞金將在 3 天后到期。 此問題的答案有資格獲得+50聲望賞金。 CalibeR.50希望引起更多關注這個問題。 在我的 web 應用程序中,用戶使用用戶名/密碼組合登錄並獲得 session cookie。 在發起 WebSocket 連接時,我可以輕松訪問WebSocketHandler中的 ...
[英]FlowableProcessor rsocket-js typescript
我正在嘗試使用 rsocket-websocket-client 構建一個聊天前端。 我可以使用requestChannel(new Flowable(source...))從前端發送消息並使用requestChannel(new Flowable.just({metatdata}))接收消息。 ...
[英]Does Spring Cloud Gateway support Rscoket for load-balancing?
我正在用 Spring Boot 實現一個微服務系統,我想要一個使用 Rsocket 在用戶和系統之間進行實時連接的服務。 但是在Spring雲網關的文檔中,好像不支持Rsocket。 這是否可以在具有 Spring 引導的微服務系統中使用 Rsocket? 或者我應該改用 websocket 嗎 ...
[英]Alibaba Rsocket - MonoContextWrite cannot be cast to class java.lang.Integer
我用的是阿里巴巴的Rsocket。 我有帶代碼的代理服務: 和實施: 和客戶服務(其他 spring 應用程序): 當我在 Controller 中注入 ExampleService 的 Bean 並使用 getMessage() 方法時,我得到了異常: 原因是什么? ...
[英]RSocketTcpClient is not a constructor - NodeJS with Rsocket-js
我想使用 Rsocket 指南( https://rsocket.io/guides/rsocket-js/client/rsocket-tcp-client )中的簡單示例在 NodeJs 上運行 Rsocket TCP 客戶端: 但是當我嘗試通過node app.js運行應用程序時出現錯誤: ...