Real text on asterisk

hi , i have an asterisk 13 installed in my server on debian , all is good;
now i want add a text chat ,
our goal is making a softphone with area message text.
it’s better to use a streaming text (socket) or use a real time text (text over Voip) and why ??
thank you