Websocket examples are not working

I am trying to use websocket API via python client

a few stuff is unclear.
Do we need to call api.polygon.StreamConn or just api.StreamConn ?

Polygon.StreamConn does not have an “on” function. Do we suppose to use the register function in polygon.StreamConn ?

I register AM and A for given stocks
I get a bunch of Trades and Quotes.
I have a live account.

I am testing in Paper Account. Can I still use polygon since I do have a live account ?

Are the examples in the github upto date?

There is also a Stream2 file but that one disconnects randomly.