sfbrigade / bats-server

Routed is an app to help ambulances direct non-critical patients to hospital emergency rooms with the most availability.
https://routedapp.org/
GNU Affero General Public License v3.0
18 stars 12 forks source link

ER client tries to connect to `ws://localhost:3000/hospital?id=undefined` on launch #212

Closed fwextensions closed 1 year ago

fwextensions commented 2 years ago

The first time the client tires to open a socket to /hospital, the id is undefined. After that, it seems to get the correct hospital ID from the user object. Not clear why the ID isn't available the first time.

fwextensions commented 1 year ago

Nice. Wouldn't have thought the render would be too early, but makes sense.