Hello.
When you create a session and connect to WCS, it sends REST hook /connect to the backend (by default it is embedded EchoApp).
When you play a stream (session.createStream(options).play()), WCS sends REST hook /playStream to the backend. When stream is PENDING, PLAYING, STOPPED or FAILED...