Skip to main content

Signaling Service

Introduction

To communicate with another peer you simply need to exchange contact information and the rest will be done by WebRTC. The process of connecting to the other peers is also known as signaling.

note

Peers with different signaling address can not connect to each other.

Server Status Page

https://status.swarmcloud.net:2083

Official Signaling Service

Default

  • HongKong
wss://signal.cdnbye.com

Europe

  • Germany
wss://signalcloud.cdnbye.com
  • Russia
wss://ru.cdnbye.com

South America

  • Brazil
wss://br.cdnbye.com

North America

  • USA
wss://opensignal.cdnbye.com

Africa

  • South Africa
wss://za.cdnbye.com

Asia-Pacific

  • Singapore
wss://sg.cdnbye.com
  • South Korea
wss://kr.cdnbye.com
  • Australia
wss://au.cdnbye.com
  • Vietnam
wss://vn.cdnbye.com
  • United Arab Emirates
wss://ae.cdnbye.com

Chinese Mainland

  • Guangzhou
wss://gz.swarmcloud.net
  • Beijing
wss://pk.swarmcloud.net

Deploy by Yourself

Deploy your own Signaling Service

Change Signaling Address

  • Log on Console
  • Click on the Signal Management button in the P2P Setting
  • Input your signaling address and conform

Via SDK Config

Web SDK

p2pConfig: {
signalConfig: 'ws://your.signalservice.com',
// Other p2pConfig options provided by cdnbye
}
// Pass p2pConfig to your P2PEngine ...

Android SDK

val config = P2pConfig.Builder()
.signalConfig("ws://your.signalservice.com")
.build()
P2pEngine.init(ctx, YOUR_TOKEN, config)

iOS SDK

let config = P2pConfig(
trackerZone: .Europe,
signalConfig: SignalConfig(mainAddr: "ws://your.signalservice.com")
)
P2pEngine.setup(token: YOUR_TOKEN, config: config)

Flutter SDK

FlutterP2pEngine.init(
YOUR_TOKEN,
config: P2pConfig(
signalConfig: 'ws://your.signalservice.com',
)
);

React Native SDK

initP2pEngine(YOUR_TOKEN, {
signalConfig: 'ws://your.signalservice.com',
})

Enable Signaling Authentication

The signaling connection authentication can be enabled to prevent unauthorized requests to your signaling server. The steps are as follows:

  • Setup authentication on config.yaml
security:
enable: true # Enable Authentication
max_timestamp_age: 3600 # Timestamp expiration time in seconds
token: YOUR_TOKEN # Custom token, no more than 8 characters
  • Contact the official customer service to inform the signaling address and token
  • The tracker server will issue a token encrypted string to the authorized node for signaling service authentication
note

You need to setup signal address via console before enabling signaling authentication.