lib/metadataprotocol.js
function readNotifyNewSession(message, tokens) {
	var i;
	message.userName = protocol.decodeString(tokens[1]);
	message.sessionId = protocol.decodeString(tokens[3]);
	message.contextProperties = {};
	tokens = tokens.slice(4);
	for (i = 0; i < tokens.length; i = i + 4) {
		message.contextProperties[protocol.decodeString(tokens[i + 1])] = protocol.decodeString(tokens[i + 3]);
	}
}
function readNotifyNewSession(message, tokens) {
	var i;
	message.userName = protocol.decodeString(tokens[1]);
	message.sessionId = protocol.decodeString(tokens[3]);
	message.contextProperties = {};
	tokens = tokens.slice(4);
	for (i = 0; i < tokens.length; i = i + 4) {
		message.contextProperties[protocol.decodeString(tokens[i + 1])] = protocol.decodeString(tokens[i + 3]);
	}
}
function readNotifyNewSession ( message , tokens ) { var i ; message . userName = protocol . decodeString ( tokens [ 1 ] ) ; message . sessionId = protocol . decodeString ( tokens [ 3 ] ) ; message . contextProperties = { } ; tokens = tokens . slice ( 4 ) ; for ( i = 0 ; i < tokens . length ; i = i + 4 ) { message . contextProperties [ protocol . decodeString ( tokens [ i + 1 ] ) ] = protocol . decodeString ( tokens [ i + 3 ] ) ; } }
Decode a notify new session request.

@param {Object} message the message object partially initialized with the id and the verb
@param {Array} tokens the rest of the message already tokenized
@private
Decode a notify new session request .