+/* The subscribe method takes a window element id and object id.
+ Any log events for that particular object id are sent to that window element. */
+function subscribeToEventLog (elementId) {
+ // if websockets are not supported by browser, do not subscribe for events
+ websocketsSupported = ('WebSocket' in window);
+ if (websocketsSupported == false) {
+ return;
+ }