In order for you to add a docked layout.
Login to CometChat admin panel.
From Left Menu Click on "Install CometChat"
Search for "Docked Layout"
Click On "Add to Site".
Copy complete code & paste it into the site footer.