How can I communicate to Gazebo Sim topics via a standalone application (no ROS)?

There is also support for WebSocket comms (recently discussed here: How can I run an ign gazebo server/client pair with websocket? ).