There are two different node types for home assistant available in node red. Go to " Manage palette" and check if you have the websocket one installed.
I never thought I have to manually update in the palette manager. My Home Assistant is up to date and the Node-RED add-on is up to date. Learned something new today! Thanks friend. Have a good day.