Tom
Tom

Reputation: 137

WebRTC Requires a Specific Signaling Server Software?

I know easyRTC and there is more software like that, I can install it on my VPS to accept WebRTC technology.

But do I really need it?

I am still learning...

I have virtual shared hosting server, that has node.js installed and I can use it on my control panel and also use some port forwarding and WebSockets.

Is it possible to make signaling server with this shared hosting server for WebRTC video calls, chat rooms or should I stop wasting my time with this. (Like upload and run it with node.js etc.)

Thanks

Upvotes: 0

Views: 368

Answers (1)

Bartek Cichocki
Bartek Cichocki

Reputation: 661

Basically yes - you can use your own server's websockets for signalling. The simplest would be:

socket.on('message', function(msg){
  io.to('roomid, socketid etc').emit('message', msg); // here you send msg to other user / users
});

But the harder (comparing to libraries like easyRTC) thing starts when you want to use it on frontend. But here you can find some nice examples depending on what you need to do.

Upvotes: 1

Related Questions