Handling text-based chat signals on the server
As in the audio call only example, here again we can see that the abstract design of the WebSocket-based signaling server we developed requires no updates to support text-based chat.
The only change required is to update the name of the source HTML file it reads in using the fs
package to video_call_with_chat.html
to match our new HTML user interface:
fs.readFile("video_call_with_chat.html", function(error, data) {
Just make this change, and then restart the signaling server, and you are ready to start chatting using text alongside your video call.