|
|
@ -147,8 +147,9 @@ define([
|
|
|
|
passwd, // password, to be deprecated (maybe)
|
|
|
|
passwd, // password, to be deprecated (maybe)
|
|
|
|
channel, // the channel we're to connect to
|
|
|
|
channel, // the channel we're to connect to
|
|
|
|
|
|
|
|
|
|
|
|
// initialState argument. (optional)
|
|
|
|
/* optional unless your application expects JSON
|
|
|
|
config.initialState || '{}',
|
|
|
|
from getUserDoc */
|
|
|
|
|
|
|
|
config.initialState || '',
|
|
|
|
|
|
|
|
|
|
|
|
// transform function (optional), which handles conflicts
|
|
|
|
// transform function (optional), which handles conflicts
|
|
|
|
{ transformFunction: config.transformFunction });
|
|
|
|
{ transformFunction: config.transformFunction });
|
|
|
@ -160,7 +161,6 @@ define([
|
|
|
|
// this is a problem
|
|
|
|
// this is a problem
|
|
|
|
warn("realtime.getUserDoc() !== newText");
|
|
|
|
warn("realtime.getUserDoc() !== newText");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//try{throw new Error();}catch(e){console.log(e.stack);}
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// pass your shiny new realtime into initialization functions
|
|
|
|
// pass your shiny new realtime into initialization functions
|
|
|
|