sendEventEmitter method
dynamic
sendEventEmitter(
- dynamic method,
- dynamic data
send reuest emit to socket server use for send message to other peer
Implementation
sendEventEmitter(method, data) async {
log('sendEventEmitter() [method: $method, data: $data]');
_socket.emit('request', {
'method': method,
'data': data,
});
}