If a user navigates to a URL in your Meteor app, such as "platypus.meteor.com/nfnoscar", is there an event that can read information about the user's device, such as via an HttpRequest object or something?
IOW, what, if any, information about the requester's context is available when an URL is navigated to? Can the requesting device's capabilities be read? Anything?
UPDATE
I tried to test MasterAM's idea with this code:
Template.garrapatabeach.rendered = function() {
var req = request;
alert(req);
}
...but I get:
=> Exited with code: 8
. . .
W20151012-09:48:06.548(-7)? (STDERR) ReferenceError: Template is not defined
W20151012-09:48:06.549(-7)? (STDERR) at meatier.js:8:1
meatier.js line 8 is:
Template.garrapatabeach.rendered = function() {
I do have a template with that name:
<template name="garrapatabeach">
...so I don't know what the complaint is... Surely it knows what "Template" itself is. For full disclosure, here's the entire console dump of the error:
=> Exited with code: 8
W20151012-09:48:06.543(-7)? (STDERR)
W20151012-09:48:06.547(-7)? (STDERR) C:\Users\clayshan\AppData\Local\.meteor\pac
kages\meteor-tool\1.1.9\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\
fibers\future.js:245
W20151012-09:48:06.547(-7)? (STDERR)
throw(ex);
W20151012-09:48:06.548(-7)? (STDERR)
^
W20151012-09:48:06.548(-7)? (STDERR) ReferenceError: Template is not defined
W20151012-09:48:06.549(-7)? (STDERR) at meatier.js:8:1
W20151012-09:48:06.549(-7)? (STDERR) at C:\Misc\meatier\.meteor\local\build\
programs\server\app\meatier.js:32:4
W20151012-09:48:06.550(-7)? (STDERR) at C:\Misc\meatier\.meteor\local\build\
programs\server\boot.js:242:10
W20151012-09:48:06.550(-7)? (STDERR) at Array.forEach (native)
W20151012-09:48:06.550(-7)? (STDERR) at Function._.each._.forEach (C:\Users\
clayshan\AppData\Local\.meteor\packages\meteor-tool\1.1.9\mt-os.windows.x86_32\d
ev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
W20151012-09:48:06.551(-7)? (STDERR) at C:\Misc\meatier\.meteor\local\build\
programs\server\boot.js:137:5
W20151012-09:48:23.969(-7)? (STDERR)
W20151012-09:48:23.970(-7)? (STDERR) C:\Users\clayshan\AppData\Local\.meteor\pac
kages\meteor-tool\1.1.9\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\
fibers\future.js:245
W20151012-09:48:23.971(-7)? (STDERR)
throw(ex);
W20151012-09:48:23.971(-7)? (STDERR)
^
W20151012-09:48:23.971(-7)? (STDERR) ReferenceError: Template is not defined
W20151012-09:48:23.972(-7)? (STDERR) at meatier.js:8:1
W20151012-09:48:23.972(-7)? (STDERR) at C:\Misc\meatier\.meteor\local\build\
programs\server\app\meatier.js:32:4
W20151012-09:48:23.972(-7)? (STDERR) at C:\Misc\meatier\.meteor\local\build\
programs\server\boot.js:242:10
W20151012-09:48:23.973(-7)? (STDERR) at Array.forEach (native)
W20151012-09:48:23.973(-7)? (STDERR) at Function._.each._.forEach (C:\Users\
clayshan\AppData\Local\.meteor\packages\meteor-tool\1.1.9\mt-os.windows.x86_32\d
ev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
W20151012-09:48:23.973(-7)? (STDERR) at C:\Misc\meatier\.meteor\local\build\
programs\server\boot.js:137:5