With the new asyncio
implementation of the websockets
library, the path
argument of connection handlers is "unnecessary since 10.1 and deprecated in 13.0" (read here).
If you remove the path
argument from the definition of your echo
function, it works as expected.