Page MenuHomeSealhub

context.js
No OneTemporary

context.js

var Immutable = require("immutable");
function Context (timestamp, ip, user_id) {
if (user_id === undefined) {
user_id = null;
}
if (timestamp == undefined) {
var d = new Date();
timestamp = d.getTime();
}
var ret = Immutable.fromJS({
timestamp: timestamp,
ip: ip || null,
user_id: user_id
});
return ret;
}
module.exports = Context;

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 09:12 (1 d, 1 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
557065
Default Alt Text
context.js (354 B)

Event Timeline