realm
- string - turn server realmnonce
- string - The runtime id of the turn server
nonce: A new ID is generated each time the server is started. This is a random string. Its main function is to determine whether the turn server has been restarted.
Get the current user's password, which is mainly used to provide authentication for the turn server.
[Session]:
address
- string - The IP address and port number of the UDP or TCP connection used by the client.interface
- string - The network interface used by the current session.
allocate request:
session
- Sessionkind
- string - "allocated"username
- string - The username used for the turn session.port
- uint16 - The port to which the request is assigned.
channel binding request:
session
- Sessionkind
- string - "channel_bind"username
- string - The username used for the turn session.channel
- uint16 - The channel to which the request is binding.
create permission request:
session
- Sessionkind
- string - "create_permission"username
- string - The username used for the turn session.ports
- uint16[] - The port number of the other side specified when the privilege was created.
refresh request:
session
- Sessionkind
- string - "refresh"username
- string - The username used for the turn session.lifetime
- uint32 - Time to expiration in seconds.
session closed:
session
- Sessionkind
- string - "abort"username
- string - The username used for the turn session.