import com.google.common.collect.ImmutableList;
public class SocketServerParser extends BaseParser<SocketServer> {
@Override
protected SocketServer createServer(ImmutableList<SessionSetting> sessionSettings, Optional<Integer> port, MocoConfig... configs) {
SocketServer server = ActualSocketServer.createLogServer(port);
for (SessionSetting session : sessionSettings) {
logger.debug("Parse session: {}", session);
session.bindTo(server);
}