sendEvent method
Sends event
to the game server
Implementation
@override
Future<bool> sendEvent(PlayerID playerID, GameCode code, Event event) async {
final js = event.asGameEvent.toJson();
logger.info('Sending event $js');
final result = await _socket!.call(IOChannel.event, js);
return result as bool;
}