Push Update via websocket

Hi guys, does anyone knows how to retrieve data from octoprint using websocket? I am using node red as the socket client and have established the websocket connection between octoprint and node red. However the data that I get is just octoprint the 'connected' data, how do I get more data like the plugin message using websocket?