Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebRTC Signaling Server (Socket.io)

Simple Socket.io signaling server for WebRTC video calls.

Installation

npm install

Running

npm start
# or for development with auto-reload:
npm run dev

Configuration

Default port is 8080, set in src/index.js.

Events

Client → Server

Event Payload Description
join { roomId, userId } Join a room
leave { roomId, userId } Leave a room
offer { targetUserId, fromUserId, sdp } WebRTC offer
answer { targetUserId, fromUserId, sdp } WebRTC answer
ice-candidate { targetUserId, fromUserId, candidate } ICE candidate

Server → Client

Event Payload Description
room-users { users: string[] } List of users in room
user-joined { userId } New user joined
user-left { userId } User left
offer { fromUserId, sdp } Forwarded offer
answer { fromUserId, sdp } Forwarded answer
ice-candidate { fromUserId, candidate } Forwarded ICE
error { message } Error message

Testing

You can use the example app in react-native-video-call/example to test.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages