mdevilliers / SignalR.RabbitMq

MessageBus implementation using RabbitMq as the backing store.
MIT License
89 stars 40 forks source link

WebSocket connection to 'ws://localhost:56739/signalr/connect? Failed during WebSocket handshake #41

Closed nishrathi closed 8 years ago

nishrathi commented 8 years ago

snap 2015-11-06 at 23 38 51 WebSocket connection to 'ws://localhost:56739/signalr/connect?transport=webSockets&clientProtocol=1.5&connectionToken=fa61yB8k4JcZoMO%2F1iFhscu9Mtklkh6%2FZuX%2Bx1ONa161moMg2y%2Bype6u%2BZFhyrNc6JKZRrUDHXoYifHWc7po%2FOc%2FWK%2Be649oFYk01eoseN3LTFGZHG3p5GYARyNAPION&connectionData=%5B%7B%22name%22%3A%22chat%22%7D%5D&tid=2' failed: Error during WebSocket handshake: net::ERR_CONNECTION_RESET

mdevilliers commented 8 years ago

Hey,

A few things to check -

  1. Is the RabbitMQ plugin installed?
  2. Are the connection details correct?
  3. Does you application work without using the scaleout bus?

Thanks,

Mark

nishrathi commented 8 years ago

Hi Mark,

  1. RabbitMQ stamp plugin is installed.
  2. Connection details are the default ones i.e. localhost, guest, guest
  3. I was trying to run the example code and have no idea about the Scaleout bus

FYI, i have latest RabbitMQ 3.5.6 and Erlang 18.1 snap 2015-11-07 at 11 43 01

mdevilliers commented 8 years ago

The last plugin I did for RMQ 3.5.* is at

https://github.com/mdevilliers/SignalR.RabbitMq/tree/master/rabbitmq-plugin/RabbitMQ_3_5/erlang_17

Could you just double check that is the one you have installed? If it doesn't work we might have to build a plugin for that combination of RMQ and Erlang.

Thanks,

Mark

nishrathi commented 8 years ago

oops,i think I installed the wrong plugin (https://github.com/mdevilliers/rabbitmq-stamp/tree/master/compiled/1.0.3/rabbitmq_3_3_1/erlang_17).

Now i have updated with the one that you provided. Websocket endpoint is still failing but the SSE endpoint is connected and the example is working now, So not sure if this is how it is supposed to work or the Websocket endpoint should also be working?

snap 2015-11-07 at 13 08 41

Thanks, Nish

mdevilliers commented 8 years ago

The web-socket endpoint should be working. I am afraid I have little to no experience with debugging issues with it.

Does the web-socket endpoint work when you don't use SignalR.RabbitMq?

mdevilliers commented 8 years ago

Closing as I believe the problem is now no related to the plugin.

Please reopen if this isn't the case.