# sails.sockets.id()

This method is an alias for [sails.sockets.getId()](https://sailsjs.com/documentation/reference/web-sockets/sails-sockets/get-id) deprecated in Sails v0.12.  Please see the [v0.12 migration guide](https://sailsjs.com/documentation/concepts/upgrading/to-v-0-12) for more information.

<docmeta name="displayName" value="sails.sockets.id()">
<docmeta name="isDeprecated" value="true">
