Will be detail backend and frontend . But chat will have all function similar fb and skype.
Write code safe, do not easy hack via chat to allow hacker firebug to find of hold and get client chat info.
1) Plugin for wordpress
2) Desktop app for pc and linux
3) App ios and android