After an element with a ws-connect attribute is removed, the socket connection is closed but then immediately reconnects. If a long lived web page adds and removes many elements with ws-connect, every websocket that ever lived still keeps reconnecting.
This behavior seems to have been added by this commit.