I know a way to get connection information is this.connection
but this works at server-side, which requires context of server side. Some help at here, but could not find the solution. As explained here, Collection is shared both at client and server-side which is confusing me in how to get the server context or connection information at Meteor-Collection as I have used some methods in it.
Asked
Active
Viewed 397 times
0

Community
- 1
- 1

user3765023
- 77
- 10
1 Answers
0
You may want to wrap your code to ensure it's running on the server, something like:
if (Meteor.isServer) {
console.log(this.connection)
}

Anthony Astige
- 1,919
- 1
- 13
- 18
-
Even if I ensure it is not giving the context of server or connection properties. – user3765023 Jun 27 '16 at 03:37