How Agent can transfer Livechat to another agent?

How a normal user with an Livechat Agent role can transfer Livechat to another agent?

Can it transfer to other departments?

Can it transfer to a chat bot?

I read on github that you can invite another agent into the chat. Then they can take over.