1

I found Tokbox is a great service for video chat. Is it possible to use text chat alone in tokbox? or text chat with video in Takbox?

Thanks

Lucas Huang
  • 3,998
  • 3
  • 20
  • 29

2 Answers2

1

You can use the OpenTok signaling API to send text and data between clients connected to an OpenTok session. These messages allow developers to build basic text chat, send instructions from one client to another, and create other valuable experiences.

Check the documentation about howto use signaling.

But maybe consider building a text chat with socket.io for example.

Mark Veenstra
  • 4,691
  • 6
  • 35
  • 66
1

I've build a system with videostreams and text chats. You can use the tokbox signals for it.

function chat_post_message(){
    $.post(url,$('form').serialize(),function(data){
        session.signal({
            type: "livechat",
            data: data
        }); 
    });
}

$(function(){
    session.on("signal", function(event) {
        if(event.type == "signal:livechat"){        
            //update a (chat)container with data
        }
    });
});

https://tokbox.com/developer/guides/signaling/js/

Hope it helps!