[SOLVED] How to get the DDP connection id inside a meteor method?

Hello,

Is there an easy way to get the DDP connection id inside a meteor method?
The connection id is only available on server or also on client?

Thanks

On the server, you can use this.connection.id

On the client, you can use Meteor.connection._lastSessionId

1 Like