interledger-deprecated / five-bells-ledger

Open-source reference ledger optimized for use with the Interledger protocol
Other
27 stars 21 forks source link

Websocket Endpoint always returns 301 #284

Open sappenin opened 8 years ago

sappenin commented 8 years ago

I'm trying to connect to the RED ledger via websocket, and it doesn't seem to be working using the command found in the docs.

I'm using:

wscat --auth dfuelling:not-my-real-password -c ws://red.ilpdemo.org/ledger/accounts/dfuelling/transfers

... and it always returns "Error: unexpected server response (301)"

Is this the right endpoint?

sappenin commented 8 years ago

Well, turns out the scheme is wrong - it needs to be wss:// instead of ws:// and the connection works.

That said, it seems like the response from the ws:// request should be a status code of 101 as opposed to a 301 for upgrade requests.