alibaba / alibaba-rsocket-broker

Alibaba RSocket Broker: Mesh, Streaming & IoT
https://alibroker.info
Apache License 2.0
763 stars 165 forks source link

make connect from client (angular) to broker #195

Open baudiachatb opened 2 years ago

baudiachatb commented 2 years ago

Describe the bug I'm having a problem making a connection from rsocket-js to the broker via websocket. When creating connection from client to broker with access token error. The authenticationService is still working properly, the returnRejectedRsocket function is still being called. However, the client side still reports successful connection before the 'returnRejectedRsocket' result is returned from the broker. The client will receive an error message when making a subsequent request.

Environment

Steps to reproduce this issue

  1. enable authentication require from broker
  2. make a connection from web using rsocket-js. add token error to metadata

Pls. provide GitHub address to reproduce this issue.

Expected Result

I expect to receive an error result

Actual Result

Client receive connect succeed from broker. The client will receive an error message when making a subsequent request.

linux-china commented 2 years ago

@baudiachatb I will take a look at RSocke-JS client side implementation, and give you feedback. What's your rsocket-js version?

baudiachatb commented 2 years ago

@linux-china l'm using rsocket-js version 0.0.27.

Other.

it seems tls has the same problem with rsocket-js. i cant make connection with wss while tcps no problem