onOpen method
Listen for when the peer is open and connected to the signaling server.
Implementation
void onOpen(void Function(String id) callback) {
on(PeerEvent.open.name, null, (ev, context) {
callback(ev.eventData as String);
});
}
Listen for when the peer is open and connected to the signaling server.
void onOpen(void Function(String id) callback) {
on(PeerEvent.open.name, null, (ev, context) {
callback(ev.eventData as String);
});
}