emit method
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.');
}