emit method

Future<void> emit(
  1. String eventName,
  2. dynamic data
)

Emits an event to the socket.

Throws SocketNotConnectedException if not connected. Throws SocketEmissionException if emission fails.

Implementation

Future<void> emit(String eventName, dynamic data) {
  throw UnimplementedError('emit() has not been implemented.');
}