ion({
          url: wsuri,
          realm: 'realm1'}
          );

        connection.onopen = function( new_session ) {

          session = new_session;

          // 1) subscribe to a topic
          function onevent(args) {
            var data = args[0];
            var obj = JSON.parse( data );
            console.log("event:", data );

            _Content.refs.Messages.add_msg( obj );
          }

          _Content.refs.Status.setState({data: "connected"});
          session.subscribe('netmonitor