The idea is to be able to unit test websocket endpoints on a router service. Any other kind of endpoint is fairly easy to test with a Request, but I can't figure out a way of easily testing websocket responses, as hitting the endpoint with a Request will give you a 501 error since you don't have any corresponding socket to handshake with.
If there is a way to do this I'd love to know as it'd help to increase coverage in the repo I'm working on.
Aucun commentaire:
Enregistrer un commentaire