The metadata parameter should contain specific data regarding the current connection or user (e.g. the user id in your app context). 

This is useful when you use the announcement channels or the presence service. It will allow you to easily identity the connection triggering the announcement.

Did this answer your question?