O'Reilly logo

Getting Started with WebRTC by Rob Manson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up a signaling server

In order to provide the web and WebSocket server functionality, we will create a basic Node.js application. You could implement this functionality using any server and programming language of your choice. And you could separate the web component and the WebSocket component into different code bases too. However, for this example, we have integrated them into a single simple JavaScript application to keep it similar to the previous browser side code examples.

This server application really is very simple, is less than 100 lines long, and contains five basic steps:

  1. First, we load in some useful libraries that make it easier to implement this application. The most important one is the websocket library. If you don't already ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required