The applet could communicate with a process on the server (the plugin) with some protocol. The plugin asks &rq to connect, send messages, read messages, contact list info etc. For this to work, all functions in &rq should be accessible from a plugin. (like retrieve preferences window, push button in preferences window and so on..)