{
LOG.trace("Going to clear pipeline");
// Clear the existing pipeline
NettyUtils.clearPipeline(channel.getPipeline());
// Set the tcp channel on the session.
NettyTCPMessageSender sender = new NettyTCPMessageSender(channel);
playerSession.setTcpSender(sender);
// Connect the pipeline to the game room.
gameRoom.connectSession(playerSession);
playerSession.setWriteable(true);// TODO remove if unnecessary. It should be done in start event
// Send the re-connect event so that it will in turn send the START event.