start-server-and-test icon indicating copy to clipboard operation
start-server-and-test copied to clipboard

Websocket support

Open IJustDev opened this issue 4 years ago • 2 comments

Hey there, thanks a lot for creating this beautiful project! I am struggling to get a backend service and a Websocket service running at the same time. Do you think it's possible to introduce a ws:// protocol?

IJustDev avatar Feb 04 '21 18:02 IJustDev

Ughh that one might be tricky. Not sure how it would work.

Sent from my iPhone

On Feb 4, 2021, at 13:59, IJustDev [email protected] wrote:

 Hey there, thanks a lot for creating this beautiful project! I am struggling to get a backend service and a Websocket service running at the same time. Do you think it's possible to introduce a ws:// protocol?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

bahmutov avatar Feb 04 '21 19:02 bahmutov

Websocket is tcp, and the wait-on library supports waiting for tcp. I was able to get this working using the syntax tcp:3000 to wait for a websocket on port 3000

start-server-and-test start-websocket tcp:3000 run-tests

bhutch29 avatar Apr 07 '21 20:04 bhutch29