You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a unit test that checks that the server handles websocket.disconnect messages correctly. This is a starlette server, which apparently wants these messages to indicate that the connection is done and should be correctly closed.
However, I am only able to to trigger ws.close() messages on the client which seem to be something different.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I'm trying to write a unit test that checks that the server handles websocket.disconnect messages correctly. This is a starlette server, which apparently wants these messages to indicate that the connection is done and should be correctly closed.
However, I am only able to to trigger
ws.close()
messages on the client which seem to be something different.How would I go about testing this?
Beta Was this translation helpful? Give feedback.
All reactions